:root {
  --version: 1.0.18; /* CSS变量声明：供JS快速读取（优先） */
}
/* ===================== 全局通用样式 ===================== */
@font-face {
  font-family: 'FashionBitmap';
  src: url('../fronts/FashionBitmap16_0.091.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* 全局禁用过度动画，提升移动端性能 */
  will-change: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

body {
  margin: 0;
  font-family: 'FashionBitmap', sans-serif;
  overflow-x: hidden;
  background: #000 !important;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  /* 页面加载淡入 - 简化动画时长 */
  opacity: 0;
  animation: pageFadeIn 1s ease-out forwards;
  /* 修复移动端点击延迟 */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ===================== 背景相关样式 (通用) ===================== */
#particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000;
  pointer-events: none;
  overflow: hidden;
}

#bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(230, 33, 60, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(156, 39, 176, 0.1) 0%, transparent 40%),
    linear-gradient(to bottom, #000000, #1a0509);
  pointer-events: none;
  /* 简化背景动画 */
  animation: bgPulse 10s ease-in-out infinite alternate;
}

#bg-scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(230, 33, 60, 0.05) 50%,
    transparent 100%
  );
  background-size: 100% 200%;
  pointer-events: none;
  /* 降低动画帧率，提升性能 */
  animation: scanlineMove 20s linear infinite;
  mix-blend-mode: overlay;
}

#bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(230, 33, 60, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 33, 60, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  /* 简化网格动画 */
  animation: gridPulse 25s ease-in-out infinite alternate;
}

/* ===================== 通用动画关键帧 (统一管理，简化移动端动画) ===================== */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bgPulse {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

@keyframes scanlineMove {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 100%; }
}

@keyframes gridPulse {
  0% { 
    opacity: 0.3;
    background-size: 40px 40px;
  }
  100% { 
    opacity: 0.6;
    background-size: 42px 42px;
  }
}

@keyframes particleGlow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
  100% { filter: brightness(1); }
}

@keyframes logoFade {
  0% { opacity: 0; transform: scale(0.5) rotate(-5deg); }
  50% { opacity: 0.7; transform: scale(1.1) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* 简化logo浮动动画，降低性能消耗 */
@keyframes logoFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 10px rgba(230, 33, 60, 0.5), 0 0 20px rgba(230, 33, 60, 0.3); }
  100% { text-shadow: 0 0 15px rgba(230, 33, 60, 0.8), 0 0 30px rgba(230, 33, 60, 0.5); }
}

@keyframes titleBlink {
  0% { text-shadow: 0 0 10px rgba(230, 33, 60, 0.5); }
  50% { text-shadow: 0 0 20px rgba(230, 33, 60, 1); }
  100% { text-shadow: 0 0 10px rgba(230, 33, 60, 0.5); }
}

/* 简化按钮流光动画，降低性能消耗 */
@keyframes btnShine {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

/* 简化卡片浮动动画 */
@keyframes cardFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

@keyframes cardLight {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

@keyframes scaryBlink {
  0% { opacity: 0; }
  20% { opacity: 1; }
  40% { opacity: 0.3; }
  60% { opacity: 1; }
  80% { opacity: 0.5; }
  100% { opacity: 0; }
}

@-webkit-keyframes scaryBlink {
  0% { opacity: 0; }
  20% { opacity: 1; }
  40% { opacity: 0.3; }
  60% { opacity: 1; }
  80% { opacity: 0.5; }
  100% { opacity: 0; }
}

@keyframes modalFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

@keyframes scoreGlow {
  0% { text-shadow: 0 0 8px rgba(255, 204, 0, 0.8); }
  100% { text-shadow: 0 0 12px rgba(255, 204, 0, 1); }
}

@keyframes lotteryGlow {
  0% { text-shadow: 0 0 10px rgba(156, 39, 176, 0.8); }
  100% { text-shadow: 0 0 15px rgba(156, 39, 176, 1), 0 0 25px rgba(156, 39, 176, 0.6); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ===================== 通用组件样式 ===================== */
/* Logo样式 (通用) */
.logo-img {
  max-width: 400px !important;
  height: auto;
  margin: 0 auto 20px;
  display: block !important;
  animation: logoFade 2s ease-out forwards, logoFloat 8s ease-in-out infinite alternate;
  opacity: 0;
  transform: scale(0.5) rotate(-5deg);
}

/* 眼睛特效 (通用) */
.eye-effect {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  opacity: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: scaryBlink 0.5s steps(1) forwards;
  animation: scaryBlink 0.5s steps(1) forwards;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

/* ===================== 欢迎页专属样式 ===================== */
.welcome-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px 20px;
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.welcome-container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  padding: 0 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

#title-main {
  font-size: clamp(2.5rem, 8vw, 4rem) !important;
  font-weight: normal;
  margin: 20px 0 25px !important;
  letter-spacing: 0.1em !important;
  line-height: 1.2 !important;
  font-family: 'FashionBitmap', sans-serif !important;
  color: #e6213c !important;
  text-shadow: 0 0 10px rgba(230, 33, 60, 0.5), 0 0 20px rgba(230, 33, 60, 0.3);
  transition: all 0.2s ease;
  animation: titleGlow 6s ease-in-out infinite alternate;
}

#title-main:active {
  animation: titleBlink 0.3s steps(1) forwards;
}

/* 官号按钮容器 */
.btn-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  margin-bottom: 15px !important;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease; /* 高度变化动画 */
}

.btn-container {
  position: relative;
  display: inline-block;
  z-index: 11; /* 确保按钮在下拉框上方 */
}

/* 基础按钮样式 - 初始状态 */
.welcome-btn {
  display: inline-block !important;
  padding: 18px 40px !important;
  text-decoration: none !important;
  border-radius: 12px !important;
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  font-family: 'FashionBitmap', sans-serif !important;
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
  border: 3px solid rgba(230, 33, 60, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  position: relative;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 0 15px rgba(230, 33, 60, 0.2);
}

/* 按钮激活状态 - 下拉栏展开时 */
.welcome-btn.active,
.welcome-btn.touched {
  background: linear-gradient(135deg, rgba(230, 33, 60, 0.5), rgba(230, 33, 60, 0.2)) !important;
  border-color: #ff0022 !important;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(230, 33, 60, 1), 0 0 20px rgba(230, 33, 60, 0.8) inset !important;
  outline: none;
}

/* 按钮悬浮状态（非激活时） */
.welcome-btn:hover:not(.active) {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(230, 33, 60, 0.7) !important;
  box-shadow: 0 0 20px rgba(230, 33, 60, 0.4) !important;
}

/* 按钮内部流光效果 */
.welcome-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: btnShine 5s linear infinite;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* 激活状态显示流光 */
.welcome-btn.active::before {
  opacity: 1;
}

/* 移动端禁用流光 */
@media (max-width: 768px) {
  .welcome-btn::before {
    animation: none !important;
  }
}

.welcome-btn #iz2jn {
  font-size: calc(clamp(1.2rem, 3vw, 1.5rem) - 2px) !important;
  opacity: 0.8;
}

/* 移除波纹特效 */
.welcome-btn::after {
  display: none !important;
}

/* 下拉动画框 */
.dropdown-menu {
  width: 100%;
  max-width: 300px;
  background: rgba(0,0,0,0.9) !important;
  border: 2px solid transparent !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 15px !important;
  z-index: 10;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

/* 下拉框展开状态 */
.dropdown-menu.show {
  height: auto;
  padding: 10px 0 !important;
  opacity: 1;
  visibility: visible;
  border-color: #e6213c !important;
  box-shadow: 0 10px 40px rgba(230, 33, 60, 0.6) !important;
}

/* 下拉选项样式 */
.dropdown-item {
  display: block !important;
  padding: 12px 20px !important;
  color: #fff !important;
  font-family: 'FashionBitmap', sans-serif !important;
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dropdown-item:hover,
.dropdown-item:active {
  background: linear-gradient(135deg, rgba(230, 33, 60, 0.3), rgba(230, 33, 60, 0.1)) !important;
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255,255,255,0.8) !important;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #e6213c;
  opacity: 0;
  transition: all 0.2s ease;
}

.dropdown-item:hover::before,
.dropdown-item:active::before {
  opacity: 1;
}

/* 登录/注册按钮容器 */
.auth-btn-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  margin-bottom: 30px !important;
  position: relative;
  z-index: 9;
  transition: all 0.4s ease;
}

.auth-btn-container {
  position: relative;
  display: inline-block;
  z-index: 10;
}

/* 登录/注册主按钮 - 初始状态 */
.auth-main-btn {
  display: inline-block !important;
  padding: 20px 45px !important;
  text-decoration: none !important;
  border-radius: 14px !important;
  font-size: clamp(1.3rem, 3.5vw, 1.6rem) !important;
  font-family: 'FashionBitmap', sans-serif !important;
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
  border: 4px solid rgba(230, 33, 60, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  position: relative;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1) inset,
              0 0 15px rgba(230, 33, 60, 0.3),
              0 0 25px rgba(230, 33, 60, 0.1);
}

/* 登录按钮激活状态 - 下拉栏展开时 */
.auth-main-btn.active,
.auth-main-btn.touched {
  background: linear-gradient(135deg, rgba(230, 33, 60, 0.6), rgba(230, 33, 60, 0.3)) !important;
  border-color: #ff0022 !important;
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(230, 33, 60, 1.2),
              0 0 25px rgba(230, 33, 60, 0.9) inset,
              0 0 0 3px rgba(255,255,255,0.2) inset !important;
  outline: none;
}

/* 登录按钮悬浮状态（非激活时） */
.auth-main-btn:hover:not(.active) {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(230, 33, 60, 0.8) !important;
  box-shadow: 0 0 20px rgba(230, 33, 60, 0.5) !important;
}

/* 登录按钮流光 */
.auth-main-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
  transform: rotate(45deg);
  animation: btnShine 6s linear infinite;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* 激活状态显示流光 */
.auth-main-btn.active::before {
  opacity: 1;
}

/* 移动端禁用流光 */
@media (max-width: 768px) {
  .auth-main-btn::before {
    animation: none !important;
  }
}

/* 移除波纹特效 */
.auth-main-btn::after {
  display: none !important;
}

/* 登录按钮文字样式 */
.auth-btn-text {
  display: block;
  line-height: 1.2;
}

.auth-btn-subtext {
  font-size: calc(clamp(1.3rem, 3.5vw, 1.6rem) - 3px) !important;
  opacity: 0.85;
  margin-top: 2px;
}

/* 登录下拉框 */
.auth-dropdown-menu {
  width: 100%;
  max-width: 320px;
  background: rgba(0,0,0,0.95) !important;
  border: 3px solid transparent !important;
  border-radius: 14px !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: none !important;
  margin-top: 12px !important;
  z-index: 8;
  height: 0;
  overflow: hidden;
  padding: 0 !important;
  transition: all 0.3s ease !important;
}

/* 登录下拉框展开状态 */
.auth-dropdown-menu.show {
  height: auto;
  padding: 8px 0 !important;
  opacity: 1;
  visibility: visible;
  border-color: #e6213c !important;
  box-shadow: 0 15px 50px rgba(230, 33, 60, 0.8),
              0 0 20px rgba(230, 33, 60, 0.5) inset !important;
}

/* 登录下拉选项样式 */
.auth-dropdown-item {
  display: block !important;
  padding: 14px 25px !important;
  color: #fff !important;
  font-family: 'FashionBitmap', sans-serif !important;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem) !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(230, 33, 60, 0.2);
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 积分项特殊样式 */
.auth-dropdown-item.score-item {
  pointer-events: none;
  color: #ffcc00 !important;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
  animation: scoreGlow 3s ease-in-out infinite alternate;
}

.auth-dropdown-item.score-item:hover {
  background: transparent !important;
  transform: none !important;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.8) !important;
}

.auth-dropdown-item.score-item::before {
  opacity: 1 !important;
  background: linear-gradient(to bottom, #ffcc00, #ff9900) !important;
}

/* 罪罰抽選按钮样式 */
.auth-dropdown-item.lottery-item {
  color: #9c27b0 !important;
  text-shadow: 0 0 10px rgba(156, 39, 176, 0.8);
  animation: lotteryGlow 4s ease-in-out infinite alternate;
}

.auth-dropdown-item.lottery-item:hover {
  color: #ba68c8 !important;
  text-shadow: 0 0 15px rgba(186, 104, 200, 1);
}

.auth-dropdown-item.lottery-item::before {
  background: linear-gradient(to bottom, #9c27b0, #ba68c8) !important;
}

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

/* 下拉项交互效果 */
.auth-dropdown-item:hover,
.auth-dropdown-item:active {
  background: linear-gradient(135deg, rgba(230, 33, 60, 0.4), rgba(230, 33, 60, 0.15)) !important;
  color: #fff !important;
  text-shadow: 0 0 12px rgba(255,255,255,0.9) !important;
  transform: none;
}

.auth-dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(to bottom, #e6213c, #ff0022);
  opacity: 0;
  transition: all 0.2s ease;
}

.auth-dropdown-item:hover::before,
.auth-dropdown-item:active::before {
  opacity: 1;
}

/* 卡片样式 */
.card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  flex: 1;
  align-items: stretch;
  transition: all 0.3s ease;
  perspective: 1000px;
}

.welcome-card {
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 15px !important;
  padding: 25px 20px !important;
  border: 2px solid rgba(230, 33, 60, 0.3) !important;
  transition: all 0.3s ease !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(230, 33, 60, 0.1);
  animation: cardFloat 10s ease-in-out infinite alternate;
  touch-action: manipulation;
}

/* 卡片交互效果 */
.welcome-card:hover,
.welcome-card:active,
.welcome-card:focus {
  transform: translateY(-10px) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(230, 33, 60, 0.1)) !important;
  box-shadow: 0 10px 30px rgba(230, 33, 60, 0.6), 0 0 20px rgba(230, 33, 60, 0.4) inset !important;
  border-color: #ff0022 !important;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(230, 33, 60, 0.5),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.welcome-card:hover::before,
.welcome-card:active::before {
  opacity: 1;
  animation: cardLight 5s linear infinite;
}

/* 卡片内链接 */
.card-link {
  text-decoration: none !important;
  color: inherit !important;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.welcome-card-title {
  font-size: clamp(1.2rem, 3vw, 1.4rem) !important;
  color: #e6213c !important;
  margin: 0 0 4px !important;
  font-family: 'FashionBitmap', sans-serif !important;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(230, 33, 60, 0.3);
}

.welcome-card:hover .welcome-card-title,
.welcome-card:active .welcome-card-title {
  text-shadow: 0 0 15px rgba(230, 33, 60, 1);
  transform: scale(1.1);
}

.welcome-card-text {
  font-size: calc(clamp(1.2rem, 3vw, 1.4rem) - 2px) !important;
  color: rgba(255,255,255,0.85) !important;
  margin: 0 !important;
  font-family: 'FashionBitmap', sans-serif !important;
}

.welcome-footer {
  width: 100%;
  padding: 10px 0;
  margin-top: auto !important;
  position: relative;
  z-index: 2;
}

.welcome-hint {
  font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
  color: rgba(255,255,255,0.7) !important;
  font-family: 'FashionBitmap', sans-serif !important;
  text-shadow: 0 0 5px rgba(230, 33, 60, 0.2);
}

#ioc3 {
  display: none !important;
}

/* 二维码弹窗样式 */
.qrcode-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
  touch-action: none;
  background: radial-gradient(circle, rgba(0,0,0,0.95) 0%, rgba(20,0,5,0.98) 100%);
}

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

.qrcode-container {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  border: 3px solid #e6213c;
  box-shadow: 0 0 50px rgba(230, 33, 60, 0.8), 0 0 20px rgba(230, 33, 60, 0.5) inset;
  max-width: 350px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: modalFloat 5s ease-in-out infinite alternate;
}

.qrcode-title {
  color: #e6213c;
  font-family: 'FashionBitmap', sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  margin-bottom: 15px;
  width: 100%;
  text-shadow: 0 0 5px rgba(230, 33, 60, 0.5);
}

.qrcode-expire {
  color: #ff0022;
  font-family: 'FashionBitmap', sans-serif;
  font-size: clamp(0.9rem, 3vw, 1rem);
  margin-top: 10px;
  margin-bottom: 15px;
  width: 100%;
  text-shadow: 0 0 3px rgba(255, 0, 34, 0.5);
}

/* 二维码容器 */
#qrcode {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(230, 33, 60, 0.3);
  border-radius: 10px;
}

/* 关闭按钮 */
.qrcode-close {
  margin-top: 20px;
  padding: 10px 30px;
  background: #e6213c;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'FashionBitmap', sans-serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 200px;
  box-shadow: 0 0 10px rgba(230, 33, 60, 0.5);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* 关闭按钮流光 */
.qrcode-close::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transform: rotate(45deg);
  animation: btnShine 5s linear infinite;
}

.qrcode-close:hover {
  background: #ff0022;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(230, 33, 60, 1);
}

/* ===================== 登录页专属样式 ===================== */
.auth-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 20px;
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 15px !important;
  padding: 40px 30px !important;
  border: 2px solid rgba(230, 33, 60, 0.3) !important;
  width: 100%;
  max-width: 450px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(230, 33, 60, 0.5),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.auth-card:hover::before {
  opacity: 1;
  animation: cardLight 5s linear infinite;
}

.auth-card:hover {
  transform: translateY(-5px) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(230, 33, 60, 0.1)) !important;
  box-shadow: 0 10px 30px rgba(230, 33, 60, 0.6), 0 0 20px rgba(230, 33, 60, 0.4) inset !important;
  border-color: #ff0022 !important;
}

.auth-form-group {
  margin-bottom: 25px;
  position: relative;
}

.auth-label {
  display: block;
  color: rgba(255,255,255,0.8);
  font-family: 'FashionBitmap', sans-serif;
  margin-bottom: 8px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  transition: all 0.2s ease;
}

.auth-form-group:focus-within .auth-label {
  color: #e6213c;
  text-shadow: 0 0 10px rgba(230, 33, 60, 0.8);
  transform: translateX(5px);
}

/* 输入框 */
.auth-input {
  width: 100%;
  padding: 18px 20px !important;
  background: rgba(255,255,255,0.1) !important;
  border: 3px solid rgba(230, 33, 60, 0.5) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-family: 'FashionBitmap', sans-serif !important;
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  outline: none;
  transition: all 0.2s ease !important;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.auth-input:focus {
  border-color: #ff0022 !important;
  box-shadow: 0 0 20px rgba(230, 33, 60, 0.8), 0 0 10px rgba(230, 33, 60, 0.5) inset !important;
  transform: none;
  background: rgba(255,255,255,0.15) !important;
}

.auth-input::placeholder {
  color: rgba(255,255,255,0.4);
  transition: all 0.2s ease;
}

.auth-input:focus::placeholder {
  color: rgba(255,255,255,0.6);
  transform: translateX(5px);
}

.code-input-group {
  display: flex;
  gap: 10px;
}

.code-input {
  flex: 1;
}

/* 发送验证码按钮 */
.send-code-btn {
  width: 120px;
  padding: 0 10px !important;
  background: rgba(230, 33, 60, 0.3) !important;
  border: 3px solid rgba(230, 33, 60, 0.5) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-family: 'FashionBitmap', sans-serif !important;
  font-size: clamp(0.8rem, 1.5vw, 1rem) !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.send-code-btn:not(:disabled):hover {
  background: linear-gradient(135deg, rgba(230, 33, 60, 0.5), rgba(230, 33, 60, 0.2)) !important;
  border-color: #ff0022 !important;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(230, 33, 60, 0.8) !important;
}

.send-code-btn:disabled {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(230, 33, 60, 0.2) !important;
  cursor: not-allowed;
}

.send-code-btn::after {
  display: none !important;
}

/* 登录按钮 */
.auth-btn {
  width: 100%;
  padding: 20px 40px !important;
  text-decoration: none !important;
  border-radius: 12px !important;
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  font-family: 'FashionBitmap', sans-serif !important;
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
  border: 3px solid rgba(230, 33, 60, 0.5) !important;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease !important;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.auth-btn:hover {
  background: linear-gradient(135deg, rgba(230, 33, 60, 0.5), rgba(230, 33, 60, 0.2)) !important;
  border-color: #ff0022 !important;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(230, 33, 60, 1), 0 0 20px rgba(230, 33, 60, 0.8) inset !important;
}

.auth-btn::after {
  display: none !important;
}

.auth-message {
  text-align: center;
  margin-top: 20px;
  font-family: 'FashionBitmap', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  min-height: 20px;
  transition: all 0.2s ease;
  padding: 10px;
  border-radius: 8px;
}

.auth-message.error {
  color: #ff4444;
  text-shadow: 0 0 8px rgba(255, 68, 68, 0.8);
  animation: shake 0.5s ease-in-out;
  background: rgba(255,68,68,0.1);
}

.auth-message.success {
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
  background: rgba(0,255,136,0.1);
}

.switch-btn {
  text-align: center;
  margin-top: 20px;
}

/* 切换按钮 */
.switch-btn a {
  color: rgba(230, 33, 60, 0.8);
  font-family: 'FashionBitmap', sans-serif;
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.switch-btn a:hover {
  color: #ff0022;
  text-shadow: 0 0 10px rgba(230, 33, 60, 1);
  transform: scale(1.05);
}

.switch-btn a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e6213c, #ff0022);
  transition: width 0.2s ease;
}

.switch-btn a:hover::after {
  width: 100%;
}

.jump-link {
  display: block;
  margin-top: 10px;
  color: #00ff88;
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-shadow: 0 0 8px rgba(0,255,136,0.8);
  transition: all 0.2s ease;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.jump-link:hover {
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(0,255,136,1);
}

/* ===================== 移动端适配 ===================== */
@media (max-width: 768px) {
  /* 通用适配 */
  .welcome-page {
    padding: 30px 15px 15px !important;
    padding-top: 60px !important;
  }

  .logo-img {
    max-width: 300px !important;
  }

  .eye-effect {
    min-width: 70px !important;
    min-height: 70px !important;
  }

  #particle-bg canvas {
    opacity: 0.8 !important;
  }

  /* 欢迎页移动端适配 */
  .card-wrapper {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .welcome-card {
    padding: 30px 20px !important;
    animation: none !important;
  }

  .welcome-btn {
    padding: 20px 45px !important;
    font-size: clamp(1.3rem, 4vw, 1.6rem) !important;
  }

  .auth-main-btn {
    padding: 18px 40px !important;
    font-size: clamp(1.2rem, 4vw, 1.5rem) !important;
  }

  .auth-dropdown-menu {
    max-width: 290px !important;
    margin-top: 10px !important;
  }

  .auth-dropdown-item {
    padding: 12px 20px !important;
    font-size: clamp(1rem, 3vw, 1.2rem) !important;
  }

  #title-main {
    font-size: clamp(1.8rem, 8vw, 2.8rem) !important;
    animation: none !important;
  }

  .dropdown-menu {
    max-width: 280px !important;
    margin-top: 10px !important;
  }

  .dropdown-item {
    padding: 15px 20px !important;
    font-size: clamp(1.1rem, 3vw, 1.3rem) !important;
  }

  /* 二维码移动端适配 */
  #qrcode {
    width: 280px !important;
    height: 280px !important;
  }

  .qrcode-container {
    max-width: 90vw !important;
    padding: 15px !important;
    animation: none !important;
  }
  
  .qrcode-close::before {
    animation: none !important;
  }

  /* 登录页移动端适配 */
  .auth-card {
    padding: 30px 20px !important;
    transform: none !important;
  }

  .auth-card:hover {
    transform: translateY(-5px) !important;
  }
  
  .auth-card::before {
    animation: none !important;
  }

  .send-code-btn {
    width: 100px;
  }

  .auth-input:focus {
    transform: none;
  }
  
  /* 移动端禁用所有非必要动画 */
  .logo-img {
    animation: logoFade 2s ease-out forwards !important;
  }
  
  .welcome-card-title {
    transition: none !important;
  }
  
  .welcome-card:hover .welcome-card-title {
    transform: none !important;
  }

  /* 移动端额外性能优化 */
  #bg-gradient {
    animation: none !important;
  }
  #bg-scanline {
    animation: none !important;
  }
  #bg-grid {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .welcome-page {
    padding: 20px 10px 10px !important;
    padding-top: 50px !important;
  }

  .logo-img {
    max-width: 220px !important;
  }

  #title-main {
    margin: 15px 0 20px !important;
    font-size: clamp(1.5rem, 9vw, 2.5rem) !important;
  }

  .auth-main-btn {
    padding: 16px 35px !important;
    font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important;
  }

  .auth-dropdown-menu {
    max-width: 260px !important;
  }
}