/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: "iconfont"; /* Project id 5081869 */
  src: url("//at.alicdn.com/t/c/font_5081869_ojg4vbf31kr.woff2?t=1764920932221")
      format("woff2"),
    url("//at.alicdn.com/t/c/font_5081869_ojg4vbf31kr.woff?t=1764920932221")
      format("woff"),
    url("//at.alicdn.com/t/c/font_5081869_ojg4vbf31kr.ttf?t=1764920932221")
      format("truetype");
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 24px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --primary-color: #30abc5; /* 更淡的主色调 */
  --primary-color-light: #fcffd6; /* 更淡的浅色 */
  --primary-color-lighter: #f9ffad; /* 更淡的浅色 */
  --primary-color-rgb: 240, 255, 49; /* 更新RGB值 */
  --primary-color-rgba-15: rgba(240, 255, 49, 0.15);
  --primary-color-rgba-25: rgba(240, 255, 49, 0.25);
  --primary-color-rgba-30: rgba(240, 255, 49, 0.3);
  --primary-color-rgba-10: rgba(240, 255, 49, 0.1);
  --text-primary: #555; /* 使文本颜色更淡 */
  --text-muted: #bbb;
    --logo-color: #606614; /* 使次要文本更淡 */
  --bg-primary: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: 50px;
  background: linear-gradient(
    135deg,
    #fffde7,
    #f8f4e1,
    #fff8e1
  ); /* 淡黄色渐变背景 */
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  background-attachment: fixed;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  padding: 5px 20px;
  z-index: 998;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: var(--bg-primary);
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header-center p {
  font-size: 24px;
  color: white;
  font-weight: bold;
}

.header-icons {
  display: flex;
  gap: 20px;
}

.header-icon {
  color: var(--bg-primary);
  font-size: 18px;
  text-decoration: none;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.header-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.header-icon:active {
  transform: scale(0.95);
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-logo {
  height: 35px;
  width: auto;
}

.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 5px;
  border-radius: 50%;
  background-color: transparent;
  width: 40px;
  height: 40px;
}

.back-button svg {
  width: 36px;
  height: 36px;
}

.back-button svg path {
  stroke: var(--bg-primary);
  fill: none;
}

.category-bar {
  position: static;
  background: var(--bg-primary);
  max-width: 1200px;
  margin: 0 auto;
}

.category-scroll-container {
  padding: 10px 15px;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scrollbar-color: var(--primary-color) transparent;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.8)
  );
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin: 10px 0;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.category-scroll-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to right,
    var(--primary-color-lighter),
    var(--primary-color),
    var(--primary-color-lighter)
  );
  border-radius: 3px;
  transition: background 0.3s ease;
}

.category-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color),
    var(--primary-color)
  );
}

.category-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
}

.category-btn {
  width: auto;
  min-width: auto;
  padding: 10px 16px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--primary-color-light) 100%
  );
  border: 2px solid transparent;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn:active {
  transform: scale(0.95);
  box-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.1),
    0 0.5px 2px rgba(0, 0, 0, 0.08);
}

.category-btn.active {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-color-lighter) 100%
  );
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 4px 16px rgba(189, 208, 196, 0.4),
    0 2px 8px rgba(189, 208, 196, 0.3),
    inset 0 1px 0 rgba(240, 255, 49, 0.3);
  transform: translateY(-2px);
}

.category-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  border-radius: 2px;
}

.category-btn-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: -1;
}

.category-btn-icon .iconfont {
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1;
}

.category-btn-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 2;
}

.category-btn-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.category-btn.active .category-btn-icon .iconfont,
.category-btn.active .category-btn-icon svg {
  color: white;
  stroke: white;
}

.category-btn.active .category-btn-text {
  color: white;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: calc(997 - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.categories-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--bg-primary);
  width: 250px;
  max-height: 80vh;
  z-index: 997;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.categories-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.categories-header {
  padding: 20px;
  border-bottom: 1px solid var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-primary);
  position: relative;
  text-align: center;
}

.categories-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: 0.3px;
}

.close-categories {
  color: #1e293b;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  border-radius: 0;
  font-weight: normal;
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.category-item {
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--primary-color);
  transition: background-color 0.2s ease;
}

.category-item:hover,
.category-item.active {
  background: rgba(0, 0, 0, 0.05);
}

.category-item.active {
  font-weight: 600;
}

.category-item:last-child {
  border-bottom: none;
}

.category-name {
  border: none;
  color: #1e293b;
  padding: 0;
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  min-width: auto;
  text-align: center;
  text-transform: none;
}

.main-content {
  margin-top: 0;
  padding: 15px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  box-shadow: none;
}

.category-bar ~ .main-content {
  margin-top: 0;
}

.footer {
  border-top: 1px solid var(--text-muted);
  margin-top: auto;
  padding: 15px;
  text-align: center;
  background-color: var(--bg-primary);
}

.footer-links {
  padding: 0;
  margin-bottom: 10px;
}

.footer-links a {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin: 0 10px;
}

.footer-copyright {
  padding: 0;
  background-color: transparent;
}

.footer-copyright-text {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 10px;
}

.game-grid-three-columns {
  grid-template-columns: repeat(3, 1fr);
}

.game-grid-four-columns {
  grid-template-columns: repeat(4, 1fr);
}

.game-card {
  background: var(--bg-primary);
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.game-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.game-card-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 70%,
    transparent 100%
  );
  padding: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 60px;
  border-radius: 0 0 5px 5px;
}

.game-card-title {
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.3;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.section-header {
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff8e1 50%, #f8f4e1 100%);
  margin-bottom: 20px;
  width: 100%;
  gap: 10px;
  height: 60px;
  padding: 0 20px;
  border-radius: 12px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(210, 105, 30, 0.1) 50%,
    transparent 100%
  );
  animation: headerShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes headerShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.section-header:hover {
  box-shadow: 
    0 6px 20px rgba(210, 105, 30, 0.15),
    0 3px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #f4dcb3 0%,
    var(--primary-color) 25%,
    #d2691e 50%,
    #cd853f 75%,
    #8b4513 100%
  );
  background-size: 200% 100%;
  animation: gradientFlow 4s ease infinite;
}

.section-more {
  background: linear-gradient(135deg, var(--primary-color) 0%, #d2691e 100%);
  color: transparent;
  text-decoration: none;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 
    0 4px 12px rgba(210, 105, 30, 0.3),
    0 2px 6px rgba(139, 69, 19, 0.2);
  transition: all 0.3s ease;
}

.section-more::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-color), #d2691e, #cd853f, var(--primary-color));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotateBorder 3s linear infinite;
  background-size: 400% 400%;
}

@keyframes rotateBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.section-more:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 
    0 6px 20px rgba(210, 105, 30, 0.5),
    0 3px 10px rgba(139, 69, 19, 0.4);
}

.section-more:hover::before {
  opacity: 1;
}

.section-more svg {
  width: 28px;
  height: 14px;
  display: block;
  animation: slideRight 1.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.section-more svg path {
  stroke: white;
}

@keyframes slideRight {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(4px);
    opacity: 0.7;
  }
}

.section-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #8b4513 0%, var(--primary-color) 50%, #d2691e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  padding-bottom: 0;
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 4px rgba(210, 105, 30, 0.2));
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 2px 4px rgba(210, 105, 30, 0.2));
  }
  50% {
    filter: drop-shadow(0 2px 8px rgba(255, 140, 0, 0.4));
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(
    to right,
    #f4dcb3 0%,
    var(--primary-color) 50%,
    #d2691e 100%
  );
  border-radius: 2px;
  animation: underlineExpand 2s ease-in-out infinite;
}

@keyframes underlineExpand {
  0%, 100% {
    width: 50px;
    opacity: 0.8;
  }
  50% {
    width: 80px;
    opacity: 1;
  }
}

.category-section {
  margin-bottom: 30px;
}

.category-section .game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 5px;
}

.category-section .game-grid.game-grid-three-columns {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* 为8个游戏卡片实现：第一行2列，第二行3列，第三行3列的布局 */
.category-section .game-grid.game-layout-233 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3列网格 */
  gap: 12px;
}

/* 第一行：2个卡片，放大并占据更多空间 */
.category-section .game-grid.game-layout-233 .game-card:nth-child(1) {
  grid-column: 1 / span 1; /* 占据第1列 */
  height: fit-content; /* 高度根据内容自适应 */
}

.category-section .game-grid.game-layout-233 .game-card:nth-child(2) {
  grid-column: 2 / span 1; /* 占据第2列 */
  height: fit-content; /* 高度根据内容自适应 */
}

/* 第二行：3个卡片 */
.category-section .game-grid.game-layout-233 .game-card:nth-child(3) {
  grid-column: 1 / span 1; /* 占据第1列 */
  height: fit-content; /* 高度根据内容自适应 */
}

.category-section .game-grid.game-layout-233 .game-card:nth-child(4) {
  grid-column: 2 / span 1; /* 占据第2列 */
  height: fit-content; /* 高度根据内容自适应 */
}

.category-section .game-grid.game-layout-233 .game-card:nth-child(5) {
  grid-column: 3 / span 1; /* 占据第3列 */
  height: fit-content; /* 高度根据内容自适应 */
}

/* 第三行：3个卡片 */
.category-section .game-grid.game-layout-233 .game-card:nth-child(6) {
  grid-column: 1 / span 1; /* 占据第1列 */
  height: fit-content; /* 高度根据内容自适应 */
}

.category-section .game-grid.game-layout-233 .game-card:nth-child(7) {
  grid-column: 2 / span 1; /* 占据第2列 */
  height: fit-content; /* 高度根据内容自适应 */
}

.category-section .game-grid.game-layout-233 .game-card:nth-child(8) {
  grid-column: 3 / span 1; /* 占据第3列 */
  height: fit-content; /* 高度根据内容自适应 */
}

/* 为第一行的卡片图片增加尺寸，同时保持比例 */
.category-section
  .game-grid.game-layout-233
  .game-card:nth-child(1)
  .game-card-image-wrapper,
.category-section
  .game-grid.game-layout-233
  .game-card:nth-child(2)
  .game-card-image-wrapper {
  aspect-ratio: 1; /* 保持正方形比例 */
  max-width: 140px; /* 增加最大宽度 */
  max-height: 140px; /* 增加最大高度 */
  margin: 0 auto; /* 居中显示 */
}

/* 对于第二、三行，保持正常尺寸 */
.category-section
  .game-grid.game-layout-233
  .game-card:nth-child(3)
  .game-card-image-wrapper,
.category-section
  .game-grid.game-layout-233
  .game-card:nth-child(4)
  .game-card-image-wrapper,
.category-section
  .game-grid.game-layout-233
  .game-card:nth-child(5)
  .game-card-image-wrapper,
.category-section
  .game-grid.game-layout-233
  .game-card:nth-child(6)
  .game-card-image-wrapper,
.category-section
  .game-grid.game-layout-233
  .game-card:nth-child(7)
  .game-card-image-wrapper,
.category-section
  .game-grid.game-layout-233
  .game-card:nth-child(8)
  .game-card-image-wrapper {
  max-width: 110px; /* 标准最大宽度 */
  max-height: 110px; /* 标准最大高度 */
  margin: 0 auto; /* 居中显示 */
}

.category-section .game-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: fadeInUp 0.6s ease-out backwards,
    subtleFloat 4s ease-in-out infinite, gentleGlow 3s ease-in-out infinite;
  cursor: pointer;
}

.category-section .game-card:nth-child(1) {
  animation-delay: 0.05s;
}
.category-section .game-card:nth-child(2) {
  animation-delay: 0.1s;
}
.category-section .game-card:nth-child(3) {
  animation-delay: 0.15s;
}
.category-section .game-card:nth-child(4) {
  animation-delay: 0.2s;
}
.category-section .game-card:nth-child(5) {
  animation-delay: 0.25s;
}
.category-section .game-card:nth-child(6) {
  animation-delay: 0.3s;
}
.category-section .game-card:nth-child(7) {
  animation-delay: 0.35s;
}
.category-section .game-card:nth-child(8) {
  animation-delay: 0.4s;
}
.category-section .game-card:nth-child(9) {
  animation-delay: 0.45s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.category-section .game-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--primary-color-rgba-30) 0%,
    var(--primary-color-rgba-30) 50%,
    var(--primary-color-rgba-30) 100%
  );
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  filter: blur(6px);
  animation: borderGlow 4s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
    opacity: 0.2;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.4;
  }
  100% {
    background-position: 0% 50%;
    opacity: 0.2;
  }
}

.category-section .game-card-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color-rgba-10),
    var(--primary-color-rgba-10)
  );
  animation: gradientFlow 8s ease infinite;
  background-size: 200% 200%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.category-section .game-card-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 3s infinite;
  z-index: 2;
  pointer-events: none;
}

.category-section .game-card-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.category-section .game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.category-section .game-card:hover .game-card-image-wrapper {
  transform: scale(1.05);
}

.category-section .game-card:hover img {
  transform: scale(1.05);
}

/* 隐藏旧的标题覆盖层 */
.category-section .game-card-title-overlay {
  display: none;
}

/* 新的文字覆盖层 - 显示在图片左侧 */
.category-section .game-card-text-overlay {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.75) 0%,
    transparent 100%
  );
  padding: 14px 16px 14px 14px;
  border-radius: 10px;
  max-width: 65%;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-section .game-card-text-overlay .game-card-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin: 0 0 6px 0;
  line-height: 1.3;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.category-section .game-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(210, 105, 30, 0.3), rgba(139, 69, 19, 0.3));
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
}

/* 评分样式 */
.category-section .game-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.category-section .game-card-rating .stars {
  font-size: 13px;
  color: #fbbf24;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.category-section .game-card-rating .rating-value {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(251, 191, 36, 0.2);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 下载量样式 */
.category-section .game-card-downloads {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.category-section .game-card-downloads svg {
  width: 12px;
  height: 12px;
  stroke: rgba(255, 255, 255, 0.8);
}

.category-section .game-card-downloads span {
  font-weight: 500;
}

/* 描述文字样式 */
.category-section .game-card-description {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin: 6px 0 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 响应式调整 */
@media (max-width: 480px) {
  .category-section .game-card-text-overlay {
    left: 8px;
    padding: 12px 14px 12px 12px;
    max-width: 70%;
  }
  
  .category-section .game-card-text-overlay .game-card-title {
    font-size: 13px;
  }
  
  .category-section .game-card-category {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .category-section .game-card-rating .stars {
    font-size: 12px;
  }
  
  .category-section .game-card-rating .rating-value {
    font-size: 11px;
  }
  
  .category-section .game-card-downloads {
    font-size: 10px;
  }
  
  .category-section .game-card-description {
    font-size: 10px;
    -webkit-line-clamp: 1;
  }
}

@media (min-width: 1024px) {
  .category-section .game-card-text-overlay {
    left: 12px;
    padding: 16px 20px 16px 16px;
    max-width: 60%;
  }
  
  .category-section .game-card-text-overlay .game-card-title {
    font-size: 17px;
  }
  
  .category-section .game-card-category {
    font-size: 12px;
  }
  
  .category-section .game-card-rating .stars {
    font-size: 14px;
  }
  
  .category-section .game-card-rating .rating-value {
    font-size: 13px;
  }
  
  .category-section .game-card-downloads {
    font-size: 12px;
  }
  
  .category-section .game-card-description {
    font-size: 12px;
  }
}

/* 静态动画效果 */
@keyframes subtleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes gentleGlow {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 0 15px var(--primary-color-rgba-15);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 0 25px var(--primary-color-rgba-25);
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes subtlePulse {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.03) saturate(1.05);
  }
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.home-float-button {
  position: fixed;
  bottom: 180px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 997;
  cursor: pointer;
  text-decoration: none;
  color: var(--bg-primary);
  font-size: 24px;
  transition: transform 0.2s ease;
}

.home-float-button:active {
  transform: scale(0.95);
}

.home-float-button svg {
  width: 30px;
  height: 30px;
}

.home-float-button svg path {
  stroke: var(--bg-primary);
  fill: none;
}

.search-section {
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.search-section.active {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 10px;
  padding-top: 5px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: none;
  padding: 0;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-bar input {
  flex: 1;
  border: 1px solid var(--primary-color);
  border-radius: 10px 0 0 10px;
  outline: none;
  font-size: 16px;
  padding: 12px;
  background: transparent;
  color: var(--text-primary);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: var(--primary-color);
  border: none;
  border-left: 1px solid var(--primary-color);
  color: var(--bg-primary);
  padding: 12px 20px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

.search-btn svg circle,
.search-btn svg path {
  stroke: var(--bg-primary);
  fill: none;
}

.game-detail-container {
  background: var(--bg-primary);
  border-radius: 5px;
  margin-bottom: 30px;
  min-width: 0;
  overflow: hidden;
  padding: 15px;
}

.game-header {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
  flex-wrap: nowrap;
  gap: 15px;
  margin-bottom: 20px;
}

.game-icon {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  background: var(--bg-primary);
}

.game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  align-items: flex-start;
  gap: 5px;
}

.game-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.game-rating {
  margin: 8px 0;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 3px;
}

.star {
  font-size: 18px;
  line-height: 1;
  color: #ddd;
  display: inline-block;
}

.star-full {
  color: #ffc107;
}

.star-half {
  position: relative;
  color: transparent;
}

.star-half::before {
  content: "★";
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #ffc107;
}

.star-half::after {
  content: "★";
  position: absolute;
  left: 0;
  width: 100%;
  color: #ddd;
}

.star-empty {
  color: #ddd;
}

.game-category {
  display: inline-block;
  border: 1px solid var(--text-muted);
  color: #999;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin: 0;
  text-transform: capitalize;
  font-weight: 500;
  letter-spacing: 0;
  width: fit-content;
}

.play-button-container {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #fff8e1 0%, #f8f4e1 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.play-button {
  background-image: url("https://syruplife.cloud/detail/static/playgame_button_back.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  border-radius: 12px;
  padding: 0;
  border: none;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  min-height: 60px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.play-button-text {
  font-size: 18px;
  font-weight: 700;
  color: black;
  text-align: center;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.game-description-section {
  margin-top: 25px;
}

.game-description-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.game-description {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommended-section {
  margin-bottom: 30px;
}

.recommended-section .section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommended-section .section-title::after {
  display: none;
}

.recommended-section .section-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.recommended-section .game-grid {
  gap: 12px;
}

.recommended-section .game-grid.game-grid-four-columns {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* 为详情页和分类页应用与首页相同的游戏卡片样式 */
.recommended-section .game-card,
#gamesGrid .game-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: fadeInUp 0.6s ease-out backwards,
        subtleFloat 4s ease-in-out infinite, gentleGlow 3s ease-in-out infinite;
    cursor: pointer;
}

.recommended-section .game-card:nth-child(1),
#gamesGrid .game-card:nth-child(1) {
  animation-delay: 0.05s;
}
.recommended-section .game-card:nth-child(2),
#gamesGrid .game-card:nth-child(2) {
  animation-delay: 0.1s;
}
.recommended-section .game-card:nth-child(3),
#gamesGrid .game-card:nth-child(3) {
  animation-delay: 0.15s;
}
.recommended-section .game-card:nth-child(4),
#gamesGrid .game-card:nth-child(4) {
  animation-delay: 0.2s;
}
.recommended-section .game-card:nth-child(5),
#gamesGrid .game-card:nth-child(5) {
  animation-delay: 0.25s;
}
.recommended-section .game-card:nth-child(6),
#gamesGrid .game-card:nth-child(6) {
  animation-delay: 0.3s;
}
.recommended-section .game-card:nth-child(7),
#gamesGrid .game-card:nth-child(7) {
  animation-delay: 0.35s;
}
.recommended-section .game-card:nth-child(8),
#gamesGrid .game-card:nth-child(8) {
  animation-delay: 0.4s;
}
.recommended-section .game-card:nth-child(9),
#gamesGrid .game-card:nth-child(9) {
  animation-delay: 0.45s;
}
.recommended-section .game-card:nth-child(10),
#gamesGrid .game-card:nth-child(10) {
  animation-delay: 0.5s;
}
.recommended-section .game-card:nth-child(11),
#gamesGrid .game-card:nth-child(11) {
  animation-delay: 0.55s;
}
.recommended-section .game-card:nth-child(12),
#gamesGrid .game-card:nth-child(12) {
  animation-delay: 0.6s;
}
.recommended-section .game-card:nth-child(13),
#gamesGrid .game-card:nth-child(13) {
  animation-delay: 0.65s;
}
.recommended-section .game-card:nth-child(14),
#gamesGrid .game-card:nth-child(14) {
  animation-delay: 0.7s;
}
.recommended-section .game-card:nth-child(15),
#gamesGrid .game-card:nth-child(15) {
  animation-delay: 0.75s;
}
.recommended-section .game-card:nth-child(16),
#gamesGrid .game-card:nth-child(16) {
  animation-delay: 0.8s;
}

.recommended-section .game-card::before,
#gamesGrid .game-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--primary-color-rgba-30) 0%,
    var(--primary-color-rgba-30) 50%,
    var(--primary-color-rgba-30) 100%
  );
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  filter: blur(6px);
  animation: borderGlow 4s ease-in-out infinite;
  background-size: 200% 200%;
}

.recommended-section .game-card-image-wrapper,
#gamesGrid .game-card-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color-rgba-10),
    var(--primary-color-rgba-10)
  );
  animation: gradientFlow 8s ease infinite;
  background-size: 200% 200%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.recommended-section .game-card-image-wrapper::before,
#gamesGrid .game-card-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 3s infinite;
  z-index: 2;
  pointer-events: none;
}

.recommended-section .game-card-image-wrapper::after,
#gamesGrid .game-card-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.recommended-section .game-card img,
#gamesGrid .game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.recommended-section .game-card:hover .game-card-image-wrapper,
#gamesGrid .game-card:hover .game-card-image-wrapper {
  transform: scale(1.05);
}

.recommended-section .game-card:hover img,
#gamesGrid .game-card:hover img {
  transform: scale(1.05);
}

.recommended-section .game-card-title-overlay,
#gamesGrid .game-card-title-overlay {
  display: none;
}

/* 文字覆盖层样式 - 为详情页和分类页也添加 */
.recommended-section .game-card-text-overlay,
#gamesGrid .game-card-text-overlay {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.75) 0%,
    transparent 100%
  );
  padding: 16px 20px 16px 16px;
  border-radius: 12px;
  max-width: 70%;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recommended-section .game-card-text-overlay .game-card-title,
#gamesGrid .game-card-text-overlay .game-card-title {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
  line-height: 1.3;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.recommended-section .game-card-category,
#gamesGrid .game-card-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(210, 105, 30, 0.3), rgba(139, 69, 19, 0.3));
  padding: 5px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
}

/* 评分样式 */
.recommended-section .game-card-rating,
#gamesGrid .game-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.recommended-section .game-card-rating .stars,
#gamesGrid .game-card-rating .stars {
  font-size: 15px;
  color: #fbbf24;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.recommended-section .game-card-rating .rating-value,
#gamesGrid .game-card-rating .rating-value {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(251, 191, 36, 0.2);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 下载量样式 */
.recommended-section .game-card-downloads,
#gamesGrid .game-card-downloads {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.recommended-section .game-card-downloads svg,
#gamesGrid .game-card-downloads svg {
  width: 12px;
  height: 12px;
  stroke: rgba(255, 255, 255, 0.8);
}

.recommended-section .game-card-downloads span,
#gamesGrid .game-card-downloads span {
  font-weight: 500;
}

/* 描述文字样式 */
.recommended-section .game-card-description,
#gamesGrid .game-card-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin: 8px 0 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 响应式调整 */
@media (max-width: 480px) {
  .recommended-section .game-card-text-overlay,
  #gamesGrid .game-card-text-overlay {
    left: 8px;
    padding: 12px 14px 12px 12px;
    max-width: 70%;
  }
  
  .recommended-section .game-card-text-overlay .game-card-title,
  #gamesGrid .game-card-text-overlay .game-card-title {
    font-size: 13px;
  }
  
  .recommended-section .game-card-category,
  #gamesGrid .game-card-category {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .recommended-section .game-card-rating .stars,
  #gamesGrid .game-card-rating .stars {
    font-size: 12px;
  }
  
  .recommended-section .game-card-rating .rating-value,
  #gamesGrid .game-card-rating .rating-value {
    font-size: 11px;
  }
  
  .recommended-section .game-card-downloads,
  #gamesGrid .game-card-downloads {
    font-size: 10px;
  }
  
  .recommended-section .game-card-description,
  #gamesGrid .game-card-description {
    font-size: 10px;
    -webkit-line-clamp: 1;
  }
}

@media (min-width: 1024px) {
  .recommended-section .game-card-text-overlay,
  #gamesGrid .game-card-text-overlay {
    left: 12px;
    padding: 16px 20px 16px 16px;
    max-width: 60%;
  }
  
  .recommended-section .game-card-text-overlay .game-card-title,
  #gamesGrid .game-card-text-overlay .game-card-title {
    font-size: 17px;
  }
  
  .recommended-section .game-card-category,
  #gamesGrid .game-card-category {
    font-size: 12px;
  }
  
  .recommended-section .game-card-rating .stars,
  #gamesGrid .game-card-rating .stars {
    font-size: 14px;
  }
  
  .recommended-section .game-card-rating .rating-value,
  #gamesGrid .game-card-rating .rating-value {
    font-size: 13px;
  }
  
  .recommended-section .game-card-downloads,
  #gamesGrid .game-card-downloads {
    font-size: 12px;
  }
  
  .recommended-section .game-card-description,
  #gamesGrid .game-card-description {
    font-size: 12px;
  }
}

#gamesGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 5px;
  margin-bottom: 40px;
}



.privacy-content,
.terms-content {
  background: var(--bg-primary);
  border-radius: 15px;
  padding: 0 10px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.privacy-section,
.terms-section {
  margin-bottom: 30px;
}

.privacy-section h2,
.terms-section h2 {
  color: var(--text-primary);
  font-size: 24px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.privacy-section h3,
.terms-section h3 {
  color: var(--text-primary);
  font-size: 18px;
  margin: 20px 0 10px 0;
}

.privacy-section p,
.terms-section p {
  color: var(--text-primary);
  margin-bottom: 15px;
}

.privacy-section ul,
.terms-section ul {
  color: var(--text-primary);
  margin-bottom: 15px;
  padding-left: 20px;
}

.privacy-section li,
.terms-section li {
  margin-bottom: 8px;
}
.ads {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ads > div {
  width: 100%;
  max-width: 300px;

  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 新增：符合规范的响应式网格布局，图片大小不一 */
.category-section .game-grid.game-layout-responsive-mixed {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 两列布局 */
  gap: 12px;
  padding: 5px;
}

/* 第一行：两个小图（第1、2个卡片） */
.category-section
  .game-grid.game-layout-responsive-mixed
  > .game-card:nth-child(1),
.category-section
  .game-grid.game-layout-responsive-mixed
  > .game-card:nth-child(2) {
  grid-row: span 1;
  grid-column: span 1;
}

/* 第二行：大图（第3个卡片），跨越两列 */
.category-section
  .game-grid.game-layout-responsive-mixed
  > .game-card:nth-child(3) {
  grid-row: span 1;
  grid-column: span 2; /* 跨越两列 */
}

/* 为不同尺寸的卡片设置不同的图片样式 */
/* 小尺寸卡片的图片（第1、2个） */
.category-section
  .game-grid.game-layout-responsive-mixed
  > .game-card:nth-child(1)
  .game-card-image-wrapper,
.category-section
  .game-grid.game-layout-responsive-mixed
  > .game-card:nth-child(2)
  .game-card-image-wrapper {
  width: 100%;
  height: auto;
  min-height: 110px;
  aspect-ratio: 1; /* 保持固定宽高比 */
}

/* 大尺寸卡片的图片（第3个） */
.category-section
  .game-grid.game-layout-responsive-mixed
  > .game-card:nth-child(3)
  .game-card-image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 200px; /* 更大的高度 */
  aspect-ratio: 2 / 1; /* 宽屏比例 */
}

/* 圆形图片设计（可选） */
.category-section
  .game-grid.game-layout-responsive-mixed.game-layout-circular
  > .game-card
  .game-card-image-wrapper {
  border-radius: 50%; /* 圆形设计 */
  overflow: hidden;
}

/* 平行四边形图片设计（可选） */
.category-section
  .game-grid.game-layout-responsive-mixed.game-layout-skewed
  > .game-card
  .game-card-image-wrapper {
  transform: skew(-10deg); /* 容器倾斜 */
  transition: transform 0.3s ease;
}

.category-section
  .game-grid.game-layout-responsive-mixed.game-layout-skewed
  > .game-card
  img {
  transform: skew(10deg); /* 图片内容反向倾斜保持正向 */
  transition: transform 0.3s ease;
}

.category-section
  .game-grid.game-layout-responsive-mixed.game-layout-skewed
  > .game-card:hover
  .game-card-image-wrapper {
  transform: skew(-10deg) scale(1.05); /* 悬停时的倾斜+放大效果 */
}

.category-section
  .game-grid.game-layout-responsive-mixed.game-layout-skewed
  > .game-card:hover
  img {
  transform: skew(10deg) scale(1.05); /* 悬停时的倾斜+放大效果 */
}

/* 保持卡片交互效果规范 */
.category-section
  .game-grid.game-layout-responsive-mixed
  > .game-card:nth-child(3n + 1):hover,
.category-section
  .game-grid.game-layout-responsive-mixed
  > .game-card:nth-child(3n + 2):hover,
.category-section
  .game-grid.game-layout-responsive-mixed
  > .game-card:nth-child(3n + 3):hover {
  transform: translateY(-2px) scale(1.02); /* 卡片交互效果规范 */
  transition: transform 0.3s ease-in-out; /* 过渡动画 */
}

/* 响应式增强：在不同屏幕尺寸下调整网格 */
@media (max-width: 480px) {
  .category-section .game-grid.game-layout-responsive-mixed {
    grid-template-columns: repeat(2, 1fr); /* 小屏幕下保持两列 */
    gap: 10px;
  }

  /* 小屏幕下大图的高度减小 */
  .category-section
    .game-grid.game-layout-responsive-mixed
    > .game-card:nth-child(3)
    .game-card-image-wrapper {
    min-height: 150px;
  }
}

@media (min-width: 1024px) {
  .category-section .game-grid.game-layout-responsive-mixed {
    grid-template-columns: repeat(2, 1fr); /* 大屏幕下保持两列 */
    gap: 15px;
  }

  /* 大屏幕下更大的卡片 */
  .category-section
    .game-grid.game-layout-responsive-mixed
    > .game-card:nth-child(1)
    .game-card-image-wrapper,
  .category-section
    .game-grid.game-layout-responsive-mixed
    > .game-card:nth-child(2)
    .game-card-image-wrapper {
    min-height: 130px;
  }

  .category-section
    .game-grid.game-layout-responsive-mixed
    > .game-card:nth-child(3)
    .game-card-image-wrapper {
    min-height: 240px; /* 大屏幕下更大的高度 */
  }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    top: 50%;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color, #60a5fa);  /* 与header相同的背景色变量 */
    color: white;  /* 白色箭头 */
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;  /* 正方形带轻微圆角 */
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: rgba(96, 165, 250, 0.9);  /* 悬停时稍微透明一点 */
    transform: translateY(-3px) scale(1.05);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}
