/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 50%, #e0e5ec 100%);
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 应用容器 */
.app-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* 手机竖版容器 - 固定尺寸 */
.mobile-wrapper {
  width: 100%;
  max-width: 428px;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #f0f2f5 100%);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* 页面内容 */
.page-content {
  padding-bottom: 80px;
  animation: fadeIn 0.3s ease-out;
}

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

/* 顶部导航栏 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(233, 69, 96, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #e94560, #ff6b6b, #ffa502);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 1.5px;
  font-weight: 600;
}

.fifa-badge {
  background: linear-gradient(135deg, #00b894, #00cec9, #00d2d3);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
  }
  50% {
    box-shadow: 0 4px 25px rgba(0, 184, 148, 0.4);
  }
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.back-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.download-btn, .notice-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 25px;
  background: rgba(233, 69, 96, 0.08);
  color: #e94560;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-btn:hover, .notice-btn:hover {
  background: rgba(233, 69, 96, 0.12);
  border-color: #e94560;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.15);
}

/* 轮播图 */
.banner {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.banner:hover .banner-img {
  transform: scale(1.05);
}

.banner-text {
  position: absolute;
  top: 30px;
  left: 20px;
  right: 20px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.banner-text h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 5px;
  background: linear-gradient(135deg, #fff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-text p {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.95;
}

.register-btn, .detail-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.register-btn {
  background: linear-gradient(135deg, #e94560, #c70039, #ff6b6b);
  color: white;
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.25);
  }
  50% {
    box-shadow: 0 4px 25px rgba(233, 69, 96, 0.4);
  }
}

.detail-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.register-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.35);
}

.detail-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 余额和功能区 */
.balance-section {
  padding: 0 16px 20px;
}

.balance-card {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(233, 69, 96, 0.15);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: cardShine 4s linear infinite;
}

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

.balance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.balance-label {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.refresh-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.refresh-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(180deg);
}

.balance-amount {
  font-size: 36px;
  font-weight: 900;
  color: #333;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(233, 69, 96, 0.1);
}

.balance-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.vip-badge-small {
  background: linear-gradient(135deg, #f39c12, #e67e22, #f1c40f);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.balance-status {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.balance-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #00b894;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 184, 148, 0);
  }
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.action-btn {
  position: relative;
  padding: 16px 8px;
  border-radius: 16px;
  font-size: 12px;
  color: white;
  overflow: hidden;
  min-width: 70px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn .btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all 0.4s ease;
}

.recharge-btn .btn-bg {
  background: linear-gradient(135deg, #00b894, #00cec9, #00d2d3);
}

.transfer-btn .btn-bg {
  background: linear-gradient(135deg, #3498db, #2980b9, #54a0ff);
}

.withdraw-btn .btn-bg {
  background: linear-gradient(135deg, #f39c12, #e67e22, #ffa502);
}

.vip-btn .btn-bg {
  background: linear-gradient(135deg, #9b59b6, #8e44ad, #a29bfe);
}

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

.btn-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.action-btn:hover .btn-bg {
  transform: scale(1.15);
}

.action-btn:hover .btn-icon-wrapper {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.15) rotate(5deg);
}

.btn-label {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
}

/* 游戏区域 */
.game-section {
  display: flex;
  height: calc(100vh - 480px);
  min-height: 350px;
  margin: 0 16px 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 左侧分类导航 */
.game-sidebar {
  width: 90px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.sidebar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 12px 8px;
  color: rgba(0, 0, 0, 0.5);
  position: relative;
}

.sidebar-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #e94560, #ff6b6b);
  border-radius: 0 3px 3px 0;
  transition: all 0.3s ease;
}

.sidebar-btn.active {
  background: rgba(233, 69, 96, 0.08);
  color: #e94560;
}

.sidebar-btn.active::before {
  height: 60%;
}

.sidebar-icon {
  font-size: 22px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sidebar-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sidebar-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* 右侧游戏列表 */
.game-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.game-content::-webkit-scrollbar {
  width: 4px;
}

.game-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

.game-content::-webkit-scrollbar-thumb {
  background: rgba(233, 69, 96, 0.3);
  border-radius: 2px;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.game-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 14px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.game-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0) 0%, rgba(233, 69, 96, 0.05) 100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(233, 69, 96, 0.2);
}

.game-item:hover::before {
  opacity: 1;
}

.game-item:active {
  transform: translateY(-2px) scale(0.98);
}

.game-item.featured {
  border: 1.5px solid rgba(233, 69, 96, 0.3);
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.game-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.game-name {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.game-provider {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.4);
}

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #e94560, #c70039);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2);
  z-index: 2;
}

.enter-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: linear-gradient(135deg, #e94560, #c70039);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2);
}

.enter-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.3);
}

.loading-text, .empty-text {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: #e94560;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* 浮动按钮 */
.floating-buttons {
  position: fixed;
  bottom: 100px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
  max-width: 428px;
  transform: translateX(-50%);
  left: 50%;
  margin-left: 150px;
}

.red-packet-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #e94560, #c70039, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.red-packet-btn img {
  width: 34px;
  height: 34px;
}

.red-packet-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(233, 69, 96, 0.35);
}

.red-packet-btn:active {
  transform: scale(1.05);
}

.pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.3);
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.activity-btn {
  background: linear-gradient(135deg, #3498db, #2980b9, #54a0ff);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.35);
}

.close-btn {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(90deg);
}

/* 个人中心页面 */
.profile-section {
  padding: 16px;
  min-height: calc(100vh - 80px);
  background: transparent;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.user-info::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(233, 69, 96, 0.25);
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.15);
  position: relative;
  z-index: 1;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  flex: 1;
  position: relative;
  z-index: 1;
}

.user-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.user-name span:first-child {
  font-size: 18px;
  font-weight: 800;
  color: #333;
}

.vip-badge {
  background: linear-gradient(135deg, #f39c12, #e67e22, #f1c40f);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.user-status {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
}

.user-signature {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.35);
}

.arrow-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.arrow-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  transform: translateX(3px);
}

/* VIP信息 */
.vip-section {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(243, 156, 18, 0.2);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.vip-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(243, 156, 18, 0.05), transparent);
  transform: rotate(45deg);
}

.vip-title {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.vip-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 8px rgba(243, 156, 18, 0.3));
}

.vip-title span:nth-child(2) {
  flex: 1;
  font-weight: 700;
  color: #333;
  font-size: 14px;
}

/* 钱包余额 */
.wallet-section {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(233, 69, 96, 0.15);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.wallet-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.wallet-title {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.wallet-amount {
  font-size: 32px;
  font-weight: 900;
  color: #333;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(233, 69, 96, 0.1);
}

/* 主要功能区 */
.main-features {
  margin-bottom: 20px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.feature-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  border-radius: 16px;
  padding: 16px 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0) 0%, rgba(233, 69, 96, 0.05) 100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.feature-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(233, 69, 96, 0.2);
}

.feature-btn:hover::before {
  opacity: 1;
}

.feature-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(233, 69, 96, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.feature-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.feature-btn:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(233, 69, 96, 0.1));
}

.feature-text {
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.feature-desc {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

/* 其他功能 */
.other-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.other-feature-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.other-feature-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0) 0%, rgba(233, 69, 96, 0.05) 100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.other-feature-btn:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(233, 69, 96, 0.2);
}

.other-feature-btn:hover::before {
  opacity: 1;
}

.other-feature-btn:active {
  transform: translateX(1px) scale(0.99);
}

.other-feature-btn .feature-icon-wrapper {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(233, 69, 96, 0.05));
  position: relative;
  z-index: 1;
}

.other-feature-btn .feature-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* 合营中心页面 */
.promotion {
  padding: 16px;
  min-height: calc(100vh - 80px);
  background: transparent;
}

.promotion h2 {
  font-size: 22px;
  font-weight: 900;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 20px rgba(233, 69, 96, 0.1);
}

/* 推广信息 */
.promotion-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.info-item .label {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.info-item .value {
  font-size: 16px;
  font-weight: 800;
  color: #333;
  flex: 1;
  text-align: center;
}

.copy-btn {
  background: linear-gradient(135deg, #e94560, #c70039);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.15);
}

.copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.25);
}

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

/* 下级管理 */
.team-management {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.team-management h3 {
  font-size: 16px;
  font-weight: 800;
  color: #333;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-management h3::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #e94560, #ff6b6b);
  border-radius: 2px;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-list > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px;
}

.team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.02);
}

.team-member:hover {
  border-color: rgba(233, 69, 96, 0.2);
  background: rgba(233, 69, 96, 0.04);
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-name {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.member-level {
  background: linear-gradient(135deg, #3498db, #2980b9);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  color: white;
  font-weight: 700;
}

.member-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-actions input {
  width: 90px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  transition: all 0.3s ease;
}

.member-actions input:focus {
  outline: none;
  border-color: rgba(233, 69, 96, 0.4);
  background: rgba(255, 255, 255, 1);
}

.member-actions input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.set-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.set-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.25);
}

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

/* 底部导航 */
.footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 428px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.footer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.4);
  font-size: 11px;
  cursor: pointer;
  padding: 8px 16px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-btn.active {
  color: #e94560;
}

.footer-btn.active::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
}

.footer-btn:hover {
  color: rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

.footer-btn:active {
  transform: translateY(0) scale(0.95);
}

.footer-btn.active:hover {
  color: #e94560;
}

/* 自定义提示框 */
.toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.toast-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 32px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: toastIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.toast-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e94560, #ff6b6b, #e94560);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

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

.toast-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.toast-message {
  font-size: 16px;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 500;
}

.toast-btn {
  background: linear-gradient(135deg, #e94560, #c70039, #ff6b6b);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.2);
}

.toast-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.toast-btn:active {
  transform: translateY(0) scale(0.98);
}

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

/* 响应式设计 */
@media (max-width: 428px) {
  .mobile-wrapper {
    max-width: 100%;
  }
  
  .floating-buttons {
    right: 16px;
    margin-left: 0;
    left: auto;
    transform: none;
  }
}

@media (max-width: 375px) {
  .game-section {
    height: calc(100vh - 460px);
    min-height: 320px;
  }
  
  .game-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .feature-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .action-buttons {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .balance-amount {
    font-size: 32px;
  }
  
  .banner {
    height: 200px;
  }
}

@media (max-width: 320px) {
  .header {
    padding: 10px 12px;
  }
  
  .balance-section {
    padding: 0 12px 16px;
  }
  
  .game-section {
    margin: 0 12px 16px;
    height: calc(100vh - 440px);
    min-height: 300px;
  }
  
  .profile-section {
    padding: 12px;
  }
  
  .promotion {
    padding: 12px;
  }
  
  .banner {
    height: 180px;
  }
}

/* 大屏幕显示 */
@media (min-width: 768px) {
  .mobile-wrapper {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.15);
    border-radius: 0;
  }
}
