/* 全新移动端优先游戏网站样式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* 现代化配色方案 */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --success: #10b981;
  --warning: #f97316;
  --danger: #ef4444;
  
  /* 背景色系 */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* 文字颜色 */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  /* 边框和圆角 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* 字体大小 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* 动画 */
  --transition: all 0.2s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--text-base);
  overflow-x: hidden;
}

/* 链接样式 */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* 按钮重置 */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* 图片样式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 列表样式 */
ul, ol {
  list-style: none;
}

/* 移动端头部 */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--bg-secondary);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  font-size: var(--text-xl);
}

.logo-text {
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.search-toggle,
.user-toggle {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-size: var(--text-lg);
}

.search-toggle:hover,
.user-toggle:hover {
  background: var(--bg-secondary);
}

/* 搜索覆盖层 */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

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

.search-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  padding: var(--space-xl);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.search-header h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.close-search {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-size: var(--text-lg);
}

.close-search:hover {
  background: var(--bg-secondary);
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.search-input {
  flex: 1;
  border: none;
  background: none;
  padding: var(--space-md);
  font-size: var(--text-base);
  color: var(--text-primary);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-submit {
  padding: var(--space-md);
  background: var(--primary);
  color: var(--text-light);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: var(--transition);
}

.search-submit:hover {
  background: var(--primary-dark);
}

.quick-categories h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.category-chip {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: var(--transition);
}

.category-chip:hover {
  background: var(--primary);
  color: var(--text-light);
}

/* 侧边导航 */
.side-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 1500;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

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

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo-icon {
  font-size: var(--text-xl);
}

.nav-logo-text {
  font-weight: 600;
  font-size: var(--text-lg);
}

.nav-close {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-size: var(--text-lg);
}

.nav-close:hover {
  background: var(--bg-secondary);
}

.nav-content {
  padding: var(--space-lg);
}

.nav-section {
  margin-bottom: var(--space-xl);
}

.nav-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition);
  margin-bottom: var(--space-xs);
}

.nav-link:hover {
  background: var(--bg-secondary);
}

.nav-link.active {
  background: var(--primary);
  color: var(--text-light);
}

.nav-link-icon {
  font-size: var(--text-lg);
}

.nav-link-text {
  font-weight: 500;
}

/* 主内容区域 */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.hero-visual {
  position: relative;
  height: 200px;
}

.floating-games {
  position: relative;
  width: 100%;
  height: 100%;
}

.game-float {
  position: absolute;
  font-size: var(--text-3xl);
  animation: float 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

.game-float:nth-child(1) { top: 20%; left: 20%; }
.game-float:nth-child(2) { top: 10%; right: 20%; }
.game-float:nth-child(3) { bottom: 30%; left: 10%; }
.game-float:nth-child(4) { bottom: 20%; right: 30%; }

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

/* 快速操作 */
.quick-actions {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-secondary);
}

.action-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.action-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.action-card.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
}

.action-card.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
}

.action-icon {
  font-size: var(--text-3xl);
}

.action-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.action-content p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.action-card.primary .action-content p {
  opacity: 0.9;
}

/* 区域标题 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-lg);
}

.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.view-all {
  color: var(--primary);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: var(--transition);
}

.view-all:hover {
  color: var(--primary-dark);
}

/* 游戏滑块 */
.trending-section {
  padding: var(--space-xl) 0;
}

.games-slider {
  display: flex;
  gap: var(--space-md);
  padding: 0 var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.games-slider::-webkit-scrollbar {
  display: none;
}

/* 游戏卡片 */
.game-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.game-card.trending {
  border: 2px solid var(--accent);
}

.game-link {
  display: block;
  height: 100%;
}

.game-image-container {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.play-button {
  color: var(--text-light);
  font-weight: 600;
  font-size: var(--text-base);
}

.trending-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--accent);
  color: var(--text-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
}

.game-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
}

.game-info {
  padding: var(--space-lg);
}

.game-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  line-height: 1.3;
}

.game-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.stars {
  color: var(--accent);
  font-size: var(--text-sm);
}

.score {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.plays {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* 分类网格 */
.categories-section {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-secondary);
}

.categories-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.category-card {
  background: var(--bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.category-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.category-name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.category-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* 最新游戏 */
.recent-section {
  padding: var(--space-xl) var(--space-lg);
}

.games-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* 行动号召 */
.cta-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--text-primary) 100%);
  color: var(--text-light);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-base);
  transition: var(--transition);
}

.cta-button.primary {
  background: var(--primary);
  color: var(--text-light);
}

.cta-button.primary:hover {
  background: var(--primary-dark);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.cta-button.secondary:hover {
  background: var(--text-light);
  color: var(--text-primary);
}

/* 页脚 */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-2xl) var(--space-lg);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-logo {
  font-size: var(--text-xl);
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 600;
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-section h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
}

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.page-subtitle {
  font-size: var(--text-lg);
  opacity: 0.9;
}

/* 关于页面内容 */
.about-content {
  padding: var(--space-2xl) var(--space-lg);
}

.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: var(--space-2xl);
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.about-text {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.about-text:last-child {
  margin-bottom: 0;
}

/* 特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.feature-item {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
}

.feature-item h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 按钮组 */
.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
} 