﻿/**
 * 博彩网站移动端样式
 * @author 设计团队
 * @version 1.0.0
 * @description 针对移动设备优化的博彩网站样式表
 */

:root {
  --primary-color: #ff6b00;
  --secondary-color: #9013fe;
  --accent-color: #ffc107;
  --background-color: #0a0e23;
  --card-bg-color: #131a3c;
  --text-color: #ffffff;
  --text-muted: #8e9bbd;
  --success-color: #4cd964;
  --danger-color: #ff3b30;
  --border-radius: 10px;
  --header-height: 56px;
  --bottom-nav-height: 60px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --gold-gradient: linear-gradient(135deg, #ffd700, #ff9500);
  --purple-gradient: linear-gradient(135deg, #6a11cb, #2575fc);
  --green-gradient: linear-gradient(135deg, #00cdac, #02aab0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

/**
 * 容器样式
 * @description 主要内容容器
 */
.container {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

/**
 * 顶部导航栏
 * @description 固定在顶部的主导航
 */
.header {
  height: var(--header-height);
  background-color: rgba(12, 17, 48, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-button {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.menu-button:active {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-logo {
  height: 40px;
  display: flex;
  align-items: center;
}

.header-logo-image {
  height: 30px;
}

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

.header-login-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-login-btn:active {
  background-color: rgba(255, 255, 255, 0.1);
}

/**
 * 侧边菜单
 * @description 可滑动显示的侧边菜单
 */
.side-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background-color: var(--card-bg-color);
  z-index: 1000;
  transition: left 0.3s ease;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.side-menu.active {
  left: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu-header {
  padding: 20px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.side-menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-logo-image {
  height: 30px;
}

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

.close-btn:active {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-items {
  padding: 15px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu-item:active {
  background-color: rgba(255, 255, 255, 0.05);
}

.menu-item i {
  width: 24px;
  margin-right: 15px;
  color: var(--primary-color);
}

.menu-user-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-login-btn, .menu-register-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.menu-login-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.menu-register-btn {
  background-color: var(--primary-color);
  color: #fff;
}

.menu-login-btn i, .menu-register-btn i {
  margin-right: 10px;
}

/**
 * 主横幅广告
 * @description 网站顶部主要推广区域，使用暗蓝色背景
 */
.main-banner {
  position: relative;
  margin: 0 0 20px;
  padding: 30px 15px;
  background: linear-gradient(145deg, #131d42, #0d1535);
  overflow: hidden;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow);
}

.banner-content {
  position: relative;
  text-align: center;
}

.logo-wrapper {
  margin-bottom: 15px;
}

.logo-image {
  width: 120px; /* 增大图片尺寸 */
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.5));
  animation: pulse 2s infinite;
}

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

.logo-slogan {
  font-size: 28px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.logo-subtext {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.logo-subtext p {
  margin-bottom: 5px;
}

.brazil-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.brazil-flag {
  color: #009c3b; /* 巴西国旗绿色 */
}

.highlight-text {
  font-weight: 600;
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.banner-actions {
  margin: 25px 0 20px;
}

.banner-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
  transition: all 0.3s ease;
}

.banner-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.banner-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.badge i {
  color: var(--accent-color);
}

/**
 * 推广卡片
 * @description 突出显示的促销卡片
 */
.promo-cards {
  display: flex;
  gap: 15px;
  margin: 0 15px 20px;
}

.promo-card {
  flex: 1;
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.promo-card:active {
  transform: translateY(2px);
}

.promo-card.invite {
  border-left: 3px solid var(--primary-color);
}

.promo-card.agent {
  border-left: 3px solid var(--secondary-color);
}

.promo-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 18px;
}

.promo-card.invite .promo-icon {
  color: var(--primary-color);
}

.promo-card.agent .promo-icon {
  color: var(--secondary-color);
}

.promo-text {
  font-size: 12px;
}

.promo-text p:first-child {
  font-weight: 600;
  margin-bottom: 3px;
}

.highlight {
  color: var(--accent-color);
  font-weight: bold;
}

/**
 * 功能导航
 * @description 页面主要功能的快捷导航
 */
.feature-nav {
  display: flex;
  justify-content: space-around;
  background-color: var(--card-bg-color);
  padding: 15px 0;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  margin-left: 15px;
  margin-right: 15px;
  box-shadow: var(--shadow);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 22px;
  position: relative;
  color: var(--text-color);
}

.feature-icon.home {
  background-color: rgba(255, 107, 0, 0.1);
  color: var(--primary-color);
}

.feature-icon.vip {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--accent-color);
}

.feature-item p {
  margin-top: 8px;
  color: var(--text-muted);
}

.badge::after {
  content: attr(data-badge);
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

.badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/**
 * 游戏卡片部分
 * @description 纯文字设计游戏卡片
 */
.game-cards-section {
  margin: 0 15px 20px;
}

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

.section-header h2 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h2 i {
  color: var(--primary-color);
}

.view-all {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.game-cards {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.game-cards::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex: 0 0 220px;
  max-width: 220px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

.game-card.tiger-theme {
  background: linear-gradient(135deg, #ff7700, #ff5500);
}

.game-card.rabbit-theme {
  background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

.game-card.dragon-theme {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.game-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-icon {
  font-size: 30px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  text-align: center;
}

.game-details {
  flex-grow: 1;
  margin-bottom: 20px;
}

.game-title {
  color: white;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.game-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 15px;
}

.game-action {
  text-align: center;
}

.play-now-btn {
  width: 100%;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-now-btn:hover,
.play-now-btn:active {
  background-color: rgba(255, 255, 255, 0.3);
}

/**
 * 节标题
 * @description 各部分的标题样式
 */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  margin: 25px 0 15px;
}

.section-title h2 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--primary-color);
}

/**
 * 促销活动卡片
 * @description 显示所有促销活动的卡片列表
 */
.promo-activities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0 15px;
}

.activity-card {
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  padding: 15px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.activity-card:active {
  transform: translateY(2px);
}

.highlight-card {
  grid-column: span 2;
  background: linear-gradient(to right, rgba(144, 19, 254, 0.1), rgba(144, 19, 254, 0.3));
  border-left: 3px solid var(--secondary-color);
}

.activity-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 18px;
}

.highlight-card .activity-icon {
  color: var(--secondary-color);
}

.activity-content h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.activity-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.activity-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  background-color: rgba(255, 107, 0, 0.2);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 10px;
}

.new-tag {
  background-color: rgba(76, 217, 100, 0.2);
  color: var(--success-color);
}

.vip-tag {
  background-color: rgba(255, 193, 7, 0.2);
  color: var(--accent-color);
}

/**
 * VIP会员区域
 * @description VIP特权展示区域
 */
.vip-section {
  margin: 0 15px 20px;
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.vip-content {
  padding: 20px;
  position: relative;
}

.vip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.vip-icon {
  color: var(--accent-color);
  font-size: 24px;
}

.vip-header h3 {
  font-size: 18px;
}

.vip-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.vip-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.vip-benefit i {
  color: var(--accent-color);
}

.vip-levels {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.vip-level {
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
}

.vip-upgrade-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--accent-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.vip-upgrade-btn:active {
  background-color: rgba(255, 193, 7, 0.2);
}

/**
 * 富豪榜区域
 * @description 显示收益排行榜
 */
.rich-list {
  margin: 0 15px 20px;
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rich-list-content {
  padding: 20px;
}

.rich-list-header {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--text-muted);
}

.rich-list-items {
  margin: 10px 0;
}

.rich-list-item {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rich-rank {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  background-color: rgba(255, 255, 255, 0.1);
}

.rich-rank.gold {
  background: var(--gold-gradient);
  color: #000;
}

.rich-rank.silver {
  background: linear-gradient(135deg, #c0c0c0, #919191);
  color: #000;
}

.rich-rank.bronze {
  background: linear-gradient(135deg, #cd7f32, #a05a2c);
  color: #fff;
}

.rich-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.rich-user i {
  color: var(--accent-color);
}

.rich-amount {
  font-weight: bold;
  color: var(--accent-color);
  text-align: right;
}

.rich-list-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 15px 0;
  text-align: center;
}

.participate-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background-color: rgba(255, 107, 0, 0.1);
  color: var(--primary-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.participate-btn:active {
  background-color: rgba(255, 107, 0, 0.2);
}

/**
 * 回到顶部按钮
 * @description 悬浮的返回顶部按钮
 */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:active {
  transform: translateY(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/**
 * 底部导航
 * @description 固定在底部的主要操作按钮，与富豪榜区域等宽
 */
.bottom-nav {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: calc(768px - 30px);
  height: var(--bottom-nav-height);
  background-color: var(--card-bg-color);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  z-index: 100;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-button, .register-button {
  flex: 1;
  height: var(--bottom-nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 0;
}

.login-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.register-button {
  background-color: var(--primary-color);
  color: white;
}

.login-button i, .register-button i {
  margin-right: 8px;
  font-size: 16px;
}

@media (max-width: 360px) {
  .promo-activities {
    grid-template-columns: 1fr;
  }
  
  .highlight-card {
    grid-column: 1;
  }
  
  .vip-benefits {
    grid-template-columns: 1fr;
  }
} 