/* 基础样式 */
body {
  font-family: 'Poppins', '微软雅黑', Arial, sans-serif;
  background: linear-gradient(135deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #fff;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

/* 顶部导航栏 */
.navbar {
  width: 100%;
  background: rgba(65, 88, 208, 0.85);
  box-shadow: 0 4px 24px rgba(65, 88, 208, 0.20);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #FFCC70 0%, #C850C0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 32px;
}
.search-input {
  margin-right: 32px;
  padding: 10px 22px;
  border-radius: 22px;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: inherit;
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: 0 2px 8px rgba(65, 88, 208, 0.25);
  transition: background 0.18s, box-shadow 0.18s;
  min-width: 180px;
  max-width: 320px;
}
.search-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}
.search-input:focus {
  background: rgba(255,255,255,0.32);
  box-shadow: 0 4px 16px rgba(200, 80, 192, 0.4);
}
@media (max-width: 600px) {
  .navbar-title { font-size: 1.1rem; margin-left: 10px; }
  .search-input { margin-right: 10px; min-width: 80px; max-width: 120px; font-size: 0.9rem; padding: 6px 10px; }
}

h1 {
  display: none;
}

.game-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 48px 0 60px 0;
  transition: opacity 0.3s ease;
}

/* 游戏卡片 */
.game-card {
  background: rgba(255,255,255,0.18);
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(65, 88, 208, 0.18), 0 1.5px 8px 0 rgba(200, 80, 192, 0.08);
  width: 260px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s, background 0.3s;
  padding: 24px 20px 20px 20px;
  text-align: center;
  border: 2.5px solid transparent;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 2.5px;
  background: linear-gradient(120deg, #FFCC70, #C850C0, #4158D0, #7F53AC);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.game-card:hover {
  transform: translateY(-14px) scale(1.06) rotate(-1.5deg);
  box-shadow: 0 16px 48px 0 rgba(200, 80, 192, 0.3), 0 2px 12px 0 rgba(255, 204, 112, 0.2);
  border: 2.5px solid #C850C0;
  background: rgba(255,255,255,0.28);
}

.game-cover {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(200, 80, 192, 0.2);
  border: 2.5px solid #fff3;
  transition: box-shadow 0.18s, border 0.18s;
}
.game-card:hover .game-cover {
  box-shadow: 0 8px 32px rgba(200, 80, 192, 0.25);
  border: 2.5px solid #C850C0;
}

.game-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(65, 88, 208, 0.6);
}

.game-desc {
  color: #fff;
  font-size: 1.05rem;
  min-height: 44px;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(65, 88, 208, 0.5);
}

.game-tag {
  display: inline-block;
  background: linear-gradient(90deg, #FFCC70 0%, #C850C0 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 12px;
  margin-bottom: 10px;
  margin-right: 4px;
  letter-spacing: 1px;
  box-shadow: 0 1px 4px rgba(200, 80, 192, 0.4);
}

#game-info {
  text-align: center;
  margin: 48px 0 28px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px #1e3c72cc;
}

#game-frame {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

iframe {
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30,60,114,0.18);
  border: 3.5px solid #fff2;
  background: #181c2f;
}

a {
  color: #FFCC70;
  text-decoration: none;
  font-weight: 700;
  margin: 24px;
  font-size: 1.15rem;
  transition: color 0.18s;
}
a:hover {
  color: #C850C0;
}

button {
  background: linear-gradient(90deg, #FFCC70 0%, #C850C0 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(200, 80, 192, 0.3);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
button:hover {
  background: linear-gradient(90deg, #C850C0 0%, #FFCC70 100%);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(200, 80, 192, 0.4);
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
}
.category-btn {
  background: linear-gradient(90deg, #FFCC70 0%, #C850C0 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: 0 1px 4px rgba(200, 80, 192, 0.3);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  opacity: 0.85;
}
.category-btn.active, .category-btn:hover {
  background: linear-gradient(90deg, #C850C0 0%, #FFCC70 100%);
  color: #fff;
  opacity: 1;
  transform: scale(1.08);
}
@media (max-width: 900px) {
  .category-bar { flex-wrap: wrap; gap: 4px; margin-left: 2px; }
  .category-btn { font-size: 0.9rem; padding: 5px 10px; }
}
@media (max-width: 600px) {
  .category-bar { flex-wrap: wrap; gap: 2px; margin-left: 0; }
  .category-btn { font-size: 0.8rem; padding: 4px 6px; }
}

@media (max-width: 600px) {
  .navbar-title { font-size: 1.3rem; }
  .game-list { gap: 14px; padding: 16px 0 30px 0; }
  .game-card { width: 98vw; max-width: 340px; padding: 10px; }
  .game-cover { width: 90vw; max-width: 300px; height: 100px; }
  #game-frame { flex-direction: column; }
  iframe { width: 98vw !important; height: 60vw !important; min-height: 200px; }
} 

.banner {
  background: linear-gradient(135deg, #4158D0 0%, #C850C0 100%);
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.banner-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  background: linear-gradient(90deg, #FFCC70, #C850C0, #FFCC70);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner-desc {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.night-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

body, .banner, .navbar, .game-card, .category-bar, .game-tag, .search-input {
  transition: all 0.3s ease;
}

/* 夜间模式 */
body.night {
  background: linear-gradient(135deg, #121212 0%, #2D1B4E 100%);
}

body.night .banner {
  background: linear-gradient(135deg, #121212 0%, #2D1B4E 100%);
}

body.night .navbar {
  background: rgba(18,18,18,0.85);
}

body.night .game-card {
  background: rgba(45, 27, 78, 0.4);
  border-color: #333;
}

body.night .game-card:hover {
  border: 2.5px solid #C850C0;
  background: rgba(65, 38, 112, 0.5);
}

body.night .game-name {
  color: #eee;
}

body.night .game-desc {
  color: #ccc;
}

body.night .category-btn {
  background: #2D1B4E;
  opacity: 0.7;
}

body.night .category-btn.active, body.night .category-btn:hover {
  background: linear-gradient(90deg, #C850C0 0%, #4158D0 100%);
  opacity: 1;
}

body.night .search-input {
  background: rgba(45, 27, 78, 0.4);
  color: #eee;
}

body.night .search-input:focus {
  background: rgba(65, 38, 112, 0.5);
}

.game-card {
  animation: fadeIn 0.6s ease-out;
}

.game-card:hover {
  animation: pulse 2s infinite;
}

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

@keyframes pulse {
  0% { box-shadow: 0 8px 32px 0 rgba(200, 80, 192, 0.25); }
  50% { box-shadow: 0 8px 32px 0 rgba(255, 204, 112, 0.35); }
  100% { box-shadow: 0 8px 32px 0 rgba(200, 80, 192, 0.25); }
} 

.sort-select {
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.night .sort-select {
  background: rgba(45, 27, 78, 0.4);
  color: #eee;
}

.sort-select:focus {
  background: rgba(255,255,255,0.25);
}

.empty-tip img {
  animation: bounce 2s infinite;
  margin-bottom: 16px;
}

.empty-tip a {
  display: inline-block;
  margin-top: 16px;
  font-size: 1rem;
}

/* 新增样式 */
.loading-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #C850C0;
  animation: spin 1s ease-in-out infinite;
}

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

.loading-text {
  color: #fff;
  font-size: 1.2rem;
  margin-top: 20px;
  font-weight: bold;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFCC70, #C850C0);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 0;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  background: rgba(65, 88, 208, 0.9);
  padding: 20px;
  text-align: center;
  margin-top: 40px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body.night .footer {
  background: rgba(29, 17, 50, 0.9);
}

.footer p {
  margin: 0;
  color: #ccc;
}

/* 改进卡片动画 */
.game-card {
  transform-origin: center bottom;
}

.game-card:hover {
  transform: translateY(-14px) scale(1.06) rotate(-1.5deg);
  z-index: 1;
}

/* 改进响应式设计 */
@media (max-width: 768px) {
  .banner-title {
    font-size: 2rem;
  }
  
  .banner-desc {
    font-size: 1rem;
  }
  
  .night-btn {
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 5px 10px;
  }
  
  .navbar {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
  }
  
  .category-bar {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 10px 0;
  }
  
  .sort-select, .search-input {
    margin: 0 10px;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .banner {
    padding: 40px 10px 30px;
  }
  
  .navbar-title {
    font-size: 1rem;
    margin-left: 5px;
  }
  
  .search-input, .sort-select {
    font-size: 0.9rem;
    padding: 5px 8px;
  }
}

/* 动画效果增强 */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* 优化夜间模式过渡 */
.night-transition {
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* 优化可访问性 */
button:focus, a:focus, input:focus, select:focus {
  outline: 2px solid #C850C0;
  outline-offset: 2px;
}

/* 历史记录区域样式 */
.history-section {
  max-width: 1000px;
  margin: 30px auto 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.8s ease-out;
}

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

.history-header h3 {
  font-size: 1.4rem;
  margin: 0;
  color: #FFCC70;
  font-weight: 700;
}

.clear-history-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-history-btn:hover {
  background: rgba(200, 80, 192, 0.3);
}

.history-list {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 80, 192, 0.5) rgba(255, 255, 255, 0.1);
}

.history-list::-webkit-scrollbar {
  height: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(200, 80, 192, 0.5);
  border-radius: 10px;
}

.history-item {
  flex: 0 0 auto;
  width: 150px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.history-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  border-color: #C850C0;
}

.history-cover {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.history-info {
  text-align: center;
}

.history-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-date {
  font-size: 0.8rem;
  color: #fff;
}

body.night .history-section {
  background: rgba(45, 27, 78, 0.4);
}

body.night .history-item {
  background: rgba(45, 27, 78, 0.4);
}

body.night .history-item:hover {
  background: rgba(65, 38, 112, 0.5);
}

@media (max-width: 768px) {
  .history-section {
    padding: 15px;
    margin: 20px 10px;
  }
  
  .history-header h3 {
    font-size: 1.2rem;
  }
  
  .history-item {
    width: 130px;
  }
  
  .history-cover {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .history-item {
    width: 110px;
  }
  
  .history-cover {
    height: 70px;
  }
  
  .history-name {
    font-size: 0.9rem;
  }
} 

/* 游戏详情页新布局 */
.game-detail-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}
.game-area {
  position: relative;
  flex: 0 0 auto;
  min-width: 340px;
  max-width: 60vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fullscreen-btn {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 10;
  margin: 0;
  padding: 10px 32px;
  font-size: 1.08rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(200, 80, 192, 0.18);
}
.game-info-area {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 320px;
  max-width: 420px;
  gap: 18px;
}
.game-info-area .game-header {
  width: 100%;
  text-align: right;
  margin: 0 0 10px 0;
}
.game-info-area .game-rules-card {
  text-align: right;
  margin: 0 0 10px 0;
  width: 100%;
}
.game-info-area .rating-section {
  justify-content: flex-end;
  width: 100%;
}
.game-bottom-tip {
  text-align: center;
  margin: 18px 0 0 0;
  color: #FFCC70;
  font-size: 1.02rem;
  letter-spacing: 1px;
}
@media (max-width: 1100px) {
  .game-detail-flex { gap: 18px; }
  .game-info-area { min-width: 220px; max-width: 320px; }
  .game-area { min-width: 220px; }
}
@media (max-width: 900px) {
  .game-detail-flex { flex-direction: column; align-items: center; gap: 0; }
  .game-info-area { align-items: center; max-width: 98vw; min-width: 0; }
  .game-info-area .game-header, .game-info-area .game-rules-card, .game-info-area .rating-section { text-align: center; align-items: center; }
  .fullscreen-btn { left: 50%; transform: translateX(-50%); bottom: 10px; }
} 

/* 增强PC端和移动端的兼容性 - 响应式设计优化 */
@media (min-width: 1201px) {
  /* PC大屏幕布局 */
  .game-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    justify-items: center;
  }
  
  .game-card {
    width: 120px;
  }
  
  .game-cover {
    width: 90px;
    height: 60px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  /* 平板和小型PC布局 */
  .game-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
  }
  
  .game-card {
    width: 140px;
  }
  
  .game-cover {
    width: 110px;
    height: 75px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  /* 平板竖屏布局 */
  .game-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
  }
  
  .game-card {
    width: 150px;
  }
  
  .game-cover {
    width: 120px;
    height: 80px;
  }
}

@media (min-width: 481px) and (max-width: 600px) {
  /* 大型手机布局 */
  .game-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-items: center;
  }
  
  .game-card {
    width: 160px;
  }
  
  .game-cover {
    width: 130px;
    height: 85px;
  }
}

/* 移动端优化 - 增强响应式设计 */
@media (max-width: 480px) {
  .game-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px 0;
    justify-items: center;
  }
  
  .game-card {
    width: 140px;
    max-width: 90%;
    padding: 10px 5px;
  }
  
  .game-cover {
    width: 110px;
    height: 70px;
    max-width: 90%;
    object-fit: cover;
  }
  
  .navbar-title {
    font-size: 1.3rem !important;
  }
  
  .search-input {
    width: 90%;
    margin: 8px auto;
    padding: 8px 12px;
  }
}

/* 超小屏幕手机 (小于375px) */
@media (max-width: 374px) {
  .game-list {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px 5px;
  }
  
  .game-card {
    width: 160px;
    max-width: 90%;
  }
  
  .game-cover {
    width: 130px;
    height: 85px;
    max-width: 90%;
  }
}

/* 修复导航栏在小屏幕上的布局问题 */
@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 5px;
    height: auto;
  }
  
  .search-input {
    order: 3;
    width: 100%;
    margin: 5px 0;
  }
  
  .category-bar {
    order: 2;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    overflow-x: auto;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
  }
  
  .category-bar::-webkit-scrollbar {
    display: none;
  }
}

/* 游戏详情页移动端适配 */
@media (max-width: 480px) {
  .game-detail-flex {
    flex-direction: column;
  }
  
  .game-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .game-desc {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .game-frame-container {
    width: 100%;
    margin: 0 auto;
  }
  
  #game-frame iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 240px;
    max-height: 70vh;
    aspect-ratio: 16/9;
  }
  
  .recommend-list {
    gap: 10px;
  }
  
  .recommend-card {
    width: 45%;
    margin: 0;
    padding: 8px 5px;
  }
  
  .recommend-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
  }
  
  .fullscreen-btn {
    position: static;
    margin: 10px auto;
    display: block;
    transform: none;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* 增强用户体验的通用样式改进 */
.game-list {
  transition: all 0.3s ease;
}

.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  will-change: transform;
}

/* 提高图片加载性能 */
.game-cover {
  content-visibility: auto;
  contain-intrinsic-size: 100px 70px;
  transform: translateZ(0); /* 开启GPU加速 */
}

/* 触摸设备的悬停效果优化 */
@media (hover: hover) {
  .game-card:hover {
    transform: translateY(-8px) scale(1.05);
  }
  
  .category-btn:hover {
    transform: scale(1.08);
  }
}

@media (hover: none) {
  .game-card:active {
    transform: translateY(-4px) scale(1.02);
  }
  
  .category-btn:active {
    transform: scale(1.04);
  }
}

/* 优化触摸体验 */
@media (max-width: 767px) {
  .game-card, .category-btn, .view-all, .back-link, .fullscreen-btn, button {
    cursor: default; /* 避免移动端显示鼠标指针 */
  }
  
  .search-input, select {
    font-size: 16px; /* 防止iOS自动缩放 */
  }
} 