:root {
  --nav: #fff;
  --body: #0073dd;
  --font: #333;
  --footer: #eee;
  --a: #035193;
  --primary-color: #f68084;
  --nav:#ffcc00;
  --hover:#f06e00;
  --search:#ffba00;
  --button:#39ff10;
  --category:#03a9f4;
  --detailbg:#014f92;
}

* {
  box-sizing: border-box;

}

[v-cloak] {
  display: none;
}

body {
  background: var(--body);
  overflow-x: hidden;
  width: 100%;
  font-family: "Montserrat", "arial", sans-serif;
}

html {
  font-size: 16px;
}

a {
  line-height: 20px;
  text-decoration: none;
  color: var(--a);
}

a:hover,
a:active {
  text-decoration: none;
}

strong {
  font-weight: bolder;
}

.fx-r {
  display: flex;
  flex-direction: row;
}

.fx-h {
  display: flex;
  flex-direction: column;
}

.fx-ac {
  justify-content: center;
}

.fx-bc {
  align-items: center;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  border-radius: 4px;
  background: var(--a);
  color: var(--nav);
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--nav);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--a);
}

/* 搜索侧边栏样式 */
#search-sidebar {
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  z-index: 600;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#search-sidebar.active {
  transform: translateX(0);
}

#search-overlay {
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 500;
}

#search-overlay.active {
  opacity: 1;
}

/* 搜索输入框聚焦效果 */
#search-sidebar input {
  transition: all 0.2s ease;
}

#search-sidebar input:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 0 0 2px var(--nav);
  border-color: var(--nav);
}

/* 热门搜索标签悬停和触摸效果 */
#search-sidebar .hover\:bg-\[var\(--hover\)\] {
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

#search-sidebar .hover\:bg-\[var\(--hover\)\]:hover {
  color: white;
  transform: translateY(-1px);
}

#search-sidebar .hover\:bg-\[var\(--hover\)\]:active {
  transform: translateY(0);
}

/* 关闭按钮悬停效果 */
#close-search {
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

#close-search:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

#close-search:active {
  transform: scale(0.95);
}

/* 搜索按钮触摸反馈 */
.bg-\[var\(--search\)\] {
  transition: all 0.2s ease;
}

.bg-\[var\(--search\)\]:active {
  transform: scale(0.95);
}

/* 响应式设计 - 适配不同屏幕尺寸 */
@media (max-width: 768px) {
  #search-sidebar {
    width: 90%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  #search-sidebar {
    width: 95%;
    max-width: none;
  }
  
  #search-sidebar .p-4 {
    padding: 12px;
  }
  
  #search-sidebar input {
    padding: 12px 40px 12px 16px;
  }
}

/* 确保侧边栏在所有内容之上 */
body {
  overflow-x: hidden;
}

/* 禁用背景滚动当侧边栏打开时 */
body.sidebar-open {
  overflow: hidden;
  position: relative;
}

/* 防止内容在侧边栏打开时位移 */
body.sidebar-open #app {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 确保过渡动画在所有浏览器中一致 */
#search-sidebar,
#search-overlay {
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -ms-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 回到顶部按钮样式 */
#back-to-top {
  font-size: 24px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.3s;
  color: white;
  border: none;
  border-radius: 50%;
  background-color: #007bff;
}

#back-to-top:hover {
  opacity: 0.8;
}

.back {
  z-index: 2;
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 4px 10px;
  background-color: #fff;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;

  img {
    width: 10px;
    height: 10px;
    cursor: pointer;
    background-size: 100% 100%;
  }
}

.navLogo {
  width: 32px;
  height: 32px;
}

.navbar {
  background: var(--nav);
}

@media (max-width: 768px) {}

/* 懒加载优化相关样式 */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--loading-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

/* 懒加载区块样式 */
[data-lazy-section] {
  transition: opacity 0.5s ease-in-out;
}

/* 骨架屏效果 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* 动画优化 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out both;
}

/* 确保所有懒加载图片初始状态为透明 */
.lazy-image {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* 加载完成后显示并应用动画 */
.lazy-image.loaded {
  opacity: 1;
}

/* 隐藏滚动条 */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 最小宽度确保内容不换行 */
.min-w-max {
  min-width: -webkit-max-content;
  min-width: -moz-max-content;
  min-width: max-content;
}
    /* 搜索侧边栏样式 */
    .search-container {
      background-color: #00acee;
      overflow: hidden;
    }
    
    .search-container-inner {
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    
    .search-header {
      background-color: #ffc107;
      border-radius: 0 0 200px 200px;
      border: none;
    }
    
    .search-logo {
      border-radius: 10px;
      background-color: white;
      padding: 5px;
    }
    
    .search-header input {
      background-color: white;
      border: 2px solid #e0e0e0;
      border-radius: 25px;
      padding: 12px 20px 12px 40px;
      font-size: 16px;
    }
    
    .search-header button {
      right: 15px;
      color: var(--nav);
    }
    
    .gcse-searchresults {
      background-color: #00acee;
      padding: 20px;
      overflow-y: auto;
      border: none;
    }
    
    .search-rec-games {
      background-color: #00acee;
      padding: 20px;
      border: none;
    }
    
    .search-rec-title {
      color: white;
      font-weight: bold;
      margin-bottom: 15px;
    }
    
    .search-rec-list {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 10px;
    }
    
    .search-rec-list > div {
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      aspect-ratio: 1/1;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    
    .search-rec-list img {
      width: 80%;
      height: 80%;
      object-fit: cover;
    }
    
    /* 关闭按钮样式 */
    #search-close-btn {
      background-color: white;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    #search-close-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    /* 响应式设计 */
    @media (max-width: 768px) {
      .search-container {
        width: 80vw;
        max-width: 700px;
      }
      
      #search-close-btn {
        left: calc(80vw - 50px);
      }
      
      .search-rec-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }
    }
    
    @media (min-width: 769px) {
      .search-container {
        width: 400px;
      }
      
      #search-close-btn {
        left: 700px;
      }
    }
    
    /* 动画效果 */
    .search-container {
      transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    .search-container.search-show {
      transform: translateX(0);
    }
    
    #search-overlay {
      transition: opacity 0.3s ease;
    }
  