@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --orange: #FF6B00;      /* 主橙色 */
  --orange-light: #FF8C00;  /* 浅橙色 */
  --orange-dark: #E65100;   /* 深橙色 */
  --orange-pale: #FFF3E0;   /* 淡橙色背景 */
  --yellow: #FFB300;        /* 黄色 */
  --brown: #5D4037;         /* 棕色文字 */
  --bg: #FFF8F0;            /* 暖色背景 */
  --card: #FFFFFF;
  --border: rgba(255, 107, 0, 0.18);
  --text: #5D4037;
  --text2: #8D6E63;
  --text3: #BCAAA4;
  --gold: #FFB300;
  --gold2: #FFD54F;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* BG */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 700px 500px at 10% 10%, rgba(255, 107, 0, .12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 90% 80%, rgba(255, 140, 0, .10) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 60% 30%, rgba(255, 179, 0, .08) 0%, transparent 70%);
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .3;
  background-image: linear-gradient(rgba(255, 107, 0, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 107, 0, .2) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orbF 8s ease-in-out infinite;
}

.bg-orb.o1 {
  width: 380px;
  height: 380px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 107, 0, .14), transparent 70%);
}

.bg-orb.o2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 140, 0, .12), transparent 70%);
  animation-delay: -4s;
}

.bg-orb.o3 {
  width: 200px;
  height: 200px;
  top: 45%;
  left: 62%;
  background: radial-gradient(circle, rgba(255, 179, 0, .10), transparent 70%);
  animation-delay: -2s;
}

@keyframes orbF {

  0%,
  100% {
    transform: translateY(0) scale(1)
  }

  50% {
    transform: translateY(-18px) scale(1.04)
  }
}

/* LOGIN */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #C8E8FA, #E8F6FF 50%, #D0F0F8);
}

#login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 600px 400px at 20% 20%, rgba(255, 107, 0, .2), transparent 60%),
    radial-gradient(ellipse 400px 300px at 80% 80%, rgba(255, 140, 0, .15), transparent 60%);
}

.login-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 0, .25);
  border-radius: 24px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 107, 0, .15), 0 4px 16px rgba(0, 0, 0, .06);
}

.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(255, 107, 0, .35);
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.login-sub {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 28px;
  line-height: 1.7;
}

.login-input {
  width: 100%;
  background: rgba(255, 107, 0, .06);
  border: 1.5px solid rgba(255, 107, 0, .2);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  padding: 13px 16px;
  margin-bottom: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.login-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .12);
}

.login-input::placeholder {
  color: var(--text3);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange), var(--orange-light));
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(255, 107, 0, .4);
  transition: all .25s;
}

.btn-primary:hover {
  background-position: 100% 0%;
  box-shadow: 0 8px 28px rgba(255, 107, 0, .55);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(.98);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text3);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 107, 0, .15);
}

.prize-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.prize-badge {
  background: #FFF3E0;
  border: 1px solid #FFCC80;
  color: #8D6E63;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prize-badge:hover {
  background: #FFE0B2;
  border-color: #FFB74D;
  transform: translateY(-2px);
}

.prize-badge.active {
  background: #fb791b;
  border-color: #fb791b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(251, 121, 27, .3);
}

.invite-note {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.7;
}

.invite-note a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}

/* MAIN */
#main-app {
  display: none;
  position: relative;
  z-index: 1;
}

/* NAV */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 107, 0, .15);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  i {
    width: 1px;
    height: 24px;
    background-color: #6a7688;
    display: inline-block;
  }
  .logo_wp {
    width: 70px;
  }
}

.nav-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-link {
  background: none;
  border: 1px solid rgba(255, 107, 0, .2);
  color: var(--text2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 107, 0, .08);
  border-color: var(--orange);
  color: var(--orange);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  position: relative;
  cursor: pointer;
}

.nav-avatar {
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(43, 167, 224, .35);
}

/* 退出登录按钮 */
.logout-btn {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  white-space: nowrap;
  z-index: 100;
}

.nav-user.logged-in:hover .logout-btn {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.logout-btn:hover {
  background: linear-gradient(135deg, #ff5252, #e04545);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

/* HERO */
.hero {
  text-align: center;
  padding: 36px 20px 20px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 45%;
  min-width: 380px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  /* transform: scale(1.15); */
  transform-origin: center top;
  padding: 20px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFF8F0, #FFF3E0);
  border: 1px solid #FFCC80;
  color: #8D6E63;
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 14px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FB791B;
  animation: dot 2s infinite;
}

@keyframes dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(1.5)
  }
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}
.hero-title1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}

.hero-title .hl {
  color: #fd5601;
}

.hero-sub {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 20px;
}

.hero-prizes {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 幸运进度条 */
.luck-progress-container {
  margin-top: 10px;
  padding: 0 20px;
}

.luck-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.luck-progress-bar {
  width: 100%;
  height: 16px;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.15), rgba(255, 140, 0, 0.15));
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.luck-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--orange-light), var(--yellow));
  background-size: 200% 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.luck-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: shimmer 2s infinite;
}

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

  100% {
    transform: translateX(100%);
  }
}

.luck-progress-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text2);
  margin-top: 8px;
  font-weight: 500;
}

.luck-progress-tip span {
  color: var(--orange);
  font-weight: 700;
}

/* CONTENT */
.main-content {
  padding: 16px 14px 16px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 400px;
  width: 100%;
  display: inline;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Layout Container */
.layout-container {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 54px);
}

@media (max-width: 768px) {
  .layout-container {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .top-nav {
    padding: 0 6px;
  }

  .top-nav>div {
    gap: 0;
  }

  .nav-logo {
    font-size: 14px;
    gap: 4px;
  }

  .nav-logo i {
    height: 18px;
  }

  .nav-logo .logo_wp {
    width: 55px;
  }

  .nav-logo-icon {
    width: 24px;
    height: 24px;
  }

  .hero {
    width: 100%;
    min-width: auto;
    padding: 20px;
  }

  .hero-inner {
    padding-top: 0;
  }

  .luck-progress-container {
    margin-top: 6px;
    padding: 0 1rem;
  }

  .luck-progress-label {
    font-size: 13px !important;
    margin-bottom: 6px;
  }

  .luck-progress-bar {
    height: 12px;
  }

  .luck-progress-tip {
    font-size: 11px !important;
    margin-top: 6px;
  }

  .hero-badge {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .main-content {
    min-width: auto;
    max-width: 100%;
  }

  /* 隐藏顶部导航链接 */
  .nav-links {
    display: none;
  }

  /* 移动端保底商品盒子改为上下排布 */
  .prizesBox {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .prizesBox div:first-child {
    text-align: center;
  }

  .prizesBox .hero-prizes {
    width: 100%;
  }

  /* 移动端历史记录 padding 优化 */
  .history-item {
    padding: 10px !important;
  }



  /* Hero 标题字体变小 */
  .hero-title {
    font-size: 24px !important;
  }

  .hero-title .hl {
    font-size: 24px !important;
  }

  /* Hero 副标题字体变小 */
  .hero-sub {
    font-size: 13px !important;
    margin-bottom: 6px;
  }

  /* 移动端去使用按钮默认显示 */
  .history-item[data-code] .use-btn {
    display: inline-block !important;
    position: static;
    transform: none;
    padding: 5px 14px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
  }

  /* 移动端隐藏时间文本 */
  .history-item[data-code] .time-text {
    display: none !important;
  }

  /* 移动端 history-time 最小宽度改为 auto */
  .history-item[data-code] .history-time {
    min-width: auto !important;
  }

  /* 移动端隐藏冒号 */
  .prizesBox span {
    display: none !important;
  }

  /* 移动端中奖滚动公告字体大小 */
  .case.realTime .news_li li,
  .case.realTime .swap li {
    font-size: 0.7rem !important;
  }
}

/* TABS */
.tabs {
  display: flex;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 107, 0, .15);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(255, 107, 0, .08);
}

.tab {
  flex: 1;
  padding: 9px 6px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  border-radius: 10px;
  color: var(--text2);
  transition: all .2s;
  font-family: inherit;
  background: none;
  border: none;
  font-weight: 500;
}

.tab.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  box-shadow: 0 3px 12px rgba(255, 107, 0, .35);
}

.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: block;
  animation: fadeUp .25s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* STATS */
.spin-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  flex: 1;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 107, 0, .15);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(255, 107, 0, .08);
  transition: transform .2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-val {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text3);
}

/* WHEEL */
.wheel-section {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 107, 0, .18);
  border-radius: 22px;
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(255, 107, 0, .1);
}

.wheel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--orange-light), var(--orange), var(--orange-dark));
  background-size: 300% 100%;
  animation: bar 4s linear infinite;
}

@keyframes bar {
  0% {
    background-position: 100% 0
  }

  100% {
    background-position: -200% 0
  }
}

.wheel-container {
  position: relative;
  width: 270px;
  height: 270px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 32px rgba(255, 107, 0, .3));
}

.wheel-pointer {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 32px;
  line-height: 1;
  color: #6c2200;
  filter: drop-shadow(0 2px 8px rgba(230, 81, 0, .8));
  text-shadow: 0 0 10px rgba(255, 107, 0, .5);
}

canvas#wheel {
  border-radius: 50%;
  /* 强制保持 CSS 显示尺寸为 270px */
  width: 270px !important;
  height: 270px !important;
  /* 优化移动端高清屏渲染 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  /* 在高分辨率屏幕上保持清晰 */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange), var(--orange-light));
  border: 3px solid #fff;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  box-shadow: 0 0 0 2px rgba(255, 107, 0, .4), 0 4px 16px rgba(255, 107, 0, .5);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  animation: btnP 2.5s ease-in-out infinite;
}

@keyframes btnP {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(255, 107, 0, .4), 0 4px 16px rgba(255, 107, 0, .5)
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 107, 0, .12), 0 4px 24px rgba(255, 107, 0, .6)
  }
}

.wheel-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  animation: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .5), 0 8px 28px rgba(255, 107, 0, .6);
}

.wheel-center-btn:active {
  transform: translate(-50%, -50%) scale(.95);
}

.wheel-center-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: translate(-50%, -50%);
  animation: none;
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
}

.btn-text {
  font-size: 12px;
  font-weight: 700;
}

.spin-count {
  font-size: 13px;
  color: var(--text3);
}

.spin-count span {
  color: var(--blue);
  font-weight: 600;
}

/* PRIZE RESULT */
.prize-result {
  background: linear-gradient(135deg, rgba(255, 107, 0, .08), rgba(255, 140, 0, .06));
  border: 1.5px solid rgba(255, 107, 0, .3);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
  display: none;
}

.prize-result.show {
  display: block;
  animation: winPop .5s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes winPop {
  from {
    opacity: 0;
    transform: scale(.85)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.prize-result-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prize-item {
  background: rgba(255, 255, 255, .85);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 0, .12);
}

.prize-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

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

.prize-item-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prize-code {
  font-size: 12px;
  font-family: monospace;
  letter-spacing: 1.5px;
  background: rgba(255, 107, 0, .08);
  border: 1px solid rgba(255, 107, 0, .2);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--blue-dark);
  flex: 1;
  word-break: break-all;
}

.btn-copy {
  background: rgba(255, 107, 0, .1);
  border: 1px solid rgba(255, 107, 0, .3);
  color: var(--orange);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
  font-weight: 500;
}

.btn-copy:hover {
  background: rgba(255, 107, 0, .2);
}

.btn-use {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(255, 107, 0, .35);
  transition: all .2s;
}

.btn-use:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 107, 0, .5);
}

/* INVITE */
.invite-section {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 107, 0, .18);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(255, 107, 0, .1);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 0, .15), rgba(255, 140, 0, .1));
  color: #E65100;
  border: 1px solid rgba(255, 107, 0, .25);
}

.section-sub {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 18px;
  line-height: 1.7;
}

.invite-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.invite-stat {
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 107, 0, .06), rgba(255, 140, 0, .04));
  border: 1px solid rgba(255, 107, 0, .15);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.invite-stat-val {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 3px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.invite-stat-label {
  font-size: 10px;
  color: var(--text3);
}

.invite-link-box {
  background: rgba(255, 107, 0, .05);
  border: 1.5px dashed rgba(255, 107, 0, .3);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.invite-link-text {
  font-size: 12px;
  color: var(--text2);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  width: 100%;
  min-height: 136px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-y: auto;
  font-family: inherit;
}

/* 自定义滚动条样式 */
.invite-link-text::-webkit-scrollbar {
  width: 6px;
}

.invite-link-text::-webkit-scrollbar-track {
  background: rgba(255, 107, 0, 0.05);
  border-radius: 3px;
}

.invite-link-text::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  border-radius: 3px;
}

.invite-link-text::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
}

.vip-perks {
  background: linear-gradient(135deg, rgba(255, 107, 0, .07), rgba(255, 140, 0, .05));
  border: 1px solid rgba(255, 107, 0, .18);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}

.vip-perks-title {
  font-size: 13px;
  font-weight: 700;
  color: #E65100;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-perk-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vip-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
}

.vip-perk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  flex-shrink: 0;
}

/* HISTORY */
.history-section {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 107, 0, .18);
  border-radius: 22px;
  padding: 0 0 24px 0;
  box-shadow: 0 4px 24px rgba(255, 107, 0, .1);
  margin-top: 20px;
  overflow: hidden;
}
.history-Box {
  padding: 0 20px;
}

.history-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-title::before {
  content: '📋';
  font-size: 18px;
}

#history-list {
  max-height: 200px;
  overflow-y: auto;
}

/* 自定义滚动条样式 */
#history-list::-webkit-scrollbar {
  width: 6px;
}

#history-list::-webkit-scrollbar-track {
  background: rgba(255, 107, 0, 0.03);
  border-radius: 3px;
}

#history-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.4), rgba(255, 107, 0, 0.5));
  border-radius: 3px;
  transition: all 0.3s;
}

#history-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.6), rgba(253, 86, 1, 0.7));
}

/* Firefox 滚动条样式 */
#history-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 0, 0.5) rgba(255, 107, 0, 0.03);
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 107, 0, .1);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  transition: all .25s;
  cursor: pointer;
}

.history-item:hover {
  box-shadow: 0 2px 8px rgba(255, 107, 0, .08);
}

/* 中奖记录悬停效果 */
.history-item[data-code]:hover {
  background: rgba(255, 107, 0, 0.08);
}

/* 复制图标样式 */
.Copy {
  width: 16px;
  height: 16px;
  position: relative;
  margin-left: 4px;
  cursor: pointer;
  display: inline-block;
  margin-top: 2px;
}

.Copy i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: solid 1px #87898f;
  position: absolute;
  left: 0;
  top: 1px;
}

.Copy .i1 {
  left: -3px;
  top: 4px;
  background-color: #fff;
  z-index: 10;
}

.Copy:hover {
  opacity: 0.7;
}

/* 时间显示控制 */
.history-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text3);
  min-width: 140px;
  text-align: right;
  position: relative;
}

.use-btn {
  display: none;
  background: #fd5601;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}

.use-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253, 86, 1, 0.4);
}

/* 鼠标悬停时显示使用按钮，隐藏时间 */
.history-item[data-code]:hover .time-text {
  display: none;
}

.history-item[data-code]:hover .use-btn {
  display: inline-block;
}

.history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.history-dot.win {
  background: #fd5601;
  box-shadow: 0 0 6px rgba(253, 86, 1, .5);
}

.history-dot.lose {
  background: rgba(255, 107, 0, .25);
}

.history-label {
  flex: 1;
  color: var(--text2);
}

.history-label span {
  color: var(--text);
  font-weight: 500;
}

.history-time {
  color: var(--text3);
  font-size: 12px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 58, 82, .5);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(43, 167, 224, .25);
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(43, 167, 224, .2);
  animation: slideUp .35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.95)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.modal-body {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 22px;
}

.modal-body strong {
  color: var(--blue-dark);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secondary {
  background: rgba(255, 107, 0, .07);
  border: 1px solid rgba(255, 107, 0, .2);
  color: #E65100;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}

.btn-secondary:hover {
  background: rgba(255, 107, 0, .12);
  color: #BF360C;
}

/* WIN FLASH */
.win-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(43, 167, 224, .3) 0%, transparent 70%);
  transition: opacity .3s;
}

.win-flash.active {
  opacity: 1;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 401;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  color: #fff;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  z-index: 500;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(255, 107, 0, .45);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.top-nav>div {
  max-width: 1400px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: auto;
}

.prizesBox {
  display: none;
}

/* 中奖滚动公告样式 */
.case.realTime {
    display: flex;
    text-align: center;
    align-items: center;
    width: 100%;
    max-width: 888px;
    height: 40px;
    background-color: #fffcc2;
    line-height: 0;
    margin: auto;
    margin-top: 0px;
    color: #666666;
    font-size: 14px;
    padding: 0 22px;
    margin-bottom: 10px;
    background: #fff8f0;
}
.case.realTime img {
    vertical-align:top;
    position: relative;
    margin-right: 10px;
}

.case.realTime img {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  flex-shrink: 0;
}

.case.realTime ul,
.case.realTime li {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.case.realTime .t_news {
  width: 100%;
  text-align: left;
  display: inline-block;
  height: 32px;
  color: #8D6E63;
  overflow: hidden;
  position: relative;
}

.case.realTime .news_li,
.case.realTime .swap {
  line-height: 32px;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.case.realTime .news_li li,
.case.realTime .swap li {
  font-size: 14px;
  color: #8D6E63;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 32px;
}
.swap li span, .news_li li span {
  float: right;
}
.case.realTime .swap {
  top: 32px;
}
.LuckyTip {
  display: none;
}