/* ===== 覆盖原 style.css 冲突，保留页面结构不变 ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #06b6d4;
  --accent-soft: #a78bfa;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --emerald: #10b981;
  --violet: #8b5cf6;
  --bg-page: #eef1f9;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(79, 70, 229, 0.07);
  --shadow-md: 0 8px 28px rgba(79, 70, 229, 0.12);
  --shadow-lg: 0 16px 40px rgba(79, 70, 229, 0.16);
  --header-shadow: 0 4px 24px rgba(79, 70, 229, 0.1);
  --max-width: 1200px;
  --transition: 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
  --nav-gradient: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(6, 182, 212, 0.06) 50%, rgba(167, 139, 250, 0.08) 100%);
  --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #06b6d4 50%, #a78bfa 100%);
  --gradient-warm: linear-gradient(135deg, #f43f5e 0%, #f59e0b 100%);
  --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --gradient-violet: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 8% 6%, rgba(79, 70, 229, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 92% 10%, rgba(6, 182, 212, 0.1) 0%, transparent 38%),
    radial-gradient(circle at 75% 92%, rgba(167, 139, 250, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(244, 63, 94, 0.06) 0%, transparent 35%),
    radial-gradient(circle, rgba(79, 70, 229, 0.05) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 24px 24px;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

/* ===== 头部导航 ===== */
.header.h-box {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  height: 64px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.82) !important;
  background-image: var(--nav-gradient) !important;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: none;
  box-shadow: var(--header-shadow);
  /* display: flex !important; */
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  line-height: normal !important;
  isolation: isolate;
}

/* 底部渐变装饰线 */
.header.h-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--accent) 50%, var(--accent-soft) 80%, transparent);
  opacity: 0.75;
}

/* 右上角装饰光晕 */
.header.h-box::before {
  content: "";
  position: absolute;
  top: -30px;
  right: 8%;
  width: 120px;
  height: 80px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.header .gotohome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(79, 70, 229, 0.1);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.header .gotohome:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}

.header .domain {
  width: auto !important;
  height: 32px !important;
  margin: 0 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
  transition: transform var(--transition);
}

.header .gotohome:hover .domain {
  transform: scale(1.03);
}

.header .search-container {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.header .search-container::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(6, 182, 212, 0.35));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
  pointer-events: none;
}

.header .search-container:focus-within::before {
  opacity: 1;
}

.header .search-container .search-input {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 40px !important;
  padding: 0 44px 0 16px !important;
  border: 1px solid rgba(79, 70, 229, 0.12) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.header .search-container .search-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.header .search-container .search-input:focus {
  border-color: transparent !important;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04), 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.header .search-container .search-icon {
  z-index: 2;
  right: 10px !important;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
  opacity: 1;
  box-sizing: border-box;
  transition: transform var(--transition), background var(--transition);
}

.header .search-container:focus-within .search-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(6, 182, 212, 0.18));
}

/* 汉堡菜单按钮 */
.header .icon {
  position: relative !important;
  flex-shrink: 0;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.15);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  overflow: hidden;
}

.header .icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.header .icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
}

.header .icon:hover::before {
  opacity: 1;
}

.header .icon li {
  position: relative !important;
  z-index: 1;
  transform: none !important;
  width: 18px !important;
  height: 2px !important;
  margin: 0 !important;
  background: var(--primary) !important;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}

.header .icon:hover li {
  background: #fff !important;
}

.header .icon:hover li:nth-child(1) {
  transform: translateY(1px) !important;
}

.header .icon:hover li:nth-child(3) {
  transform: translateY(-1px) !important;
}

.header .icon:active {
  transform: scale(0.96);
}

/* ===== 侧边菜单 ===== */
.zhezhaoContainer.h-box {
  display: none;
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  width: 100% !important;
  height: 100% !important;
  animation: menuOverlayIn 0.25s ease;
}

@keyframes menuOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.zhezhaoContainer .zhezhao {
  position: absolute !important;
  right: 0;
  top: 0;
  width: min(300px, 88vw) !important;
  height: 100% !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 55%, #f1f5ff 100%) !important;
  box-shadow: -12px 0 40px rgba(79, 70, 229, 0.15);
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid rgba(79, 70, 229, 0.1);
  animation: menuSlideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.zhezhaoContainer .zhezhao::before {
  content: "";
  display: block;
  height: 4px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-soft));
}

/* 菜单头部 */
.zhezhaoContainer .zhezhao .el-menu-vertical-demo::before {
  content: "Menu";
  display: block;
  padding: 22px 20px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  background: transparent !important;
}

.zhezhaoContainer .zhezhao .el-menu-vertical-demo::after {
  content: none;
  display: none;
}

/* 副标题放在 Home 上方 */
.zhezhaoContainer .zhezhao .gotohome::before {
  content: "Browse games & settings";
  display: block;
  padding: 4px 4px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
  margin-bottom: 8px;
}

/* 关闭按钮 */
.zhezhaoContainer .zhezhao .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 8px;
  cursor: pointer;
  z-index: 10;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.08) !important;
  border: 1px solid rgba(79, 70, 229, 0.12);
  box-sizing: border-box;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.zhezhaoContainer .zhezhao .close:hover {
  background: rgba(79, 70, 229, 0.15) !important;
  transform: rotate(90deg);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

/* 菜单容器 */
.zhezhaoContainer .zhezhao .el-menu-vertical-demo {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  background: transparent !important;
  border-right: none !important;
}

.zhezhaoContainer .zhezhao .el-menu-vertical-demo.el-menu {
  padding-left: 0 !important;
}

.zhezhaoContainer .zhezhao .gotohome {
  display: block;
  margin: 0 12px !important;
  padding: 0 !important;
  text-decoration: none !important;
  color: inherit;
}

/* 一级菜单项 & 子菜单标题 — 统一对齐 */
.zhezhaoContainer .zhezhao .el-menu-item,
.zhezhaoContainer .zhezhao .el-submenu__title,
.zhezhaoContainer .zhezhao .gotohome .el-menu-item {
  height: auto !important;
  min-height: 48px;
  line-height: 1.4 !important;
  padding: 13px 16px !important;
  margin: 4px 0 !important;
  border-radius: 12px !important;
  text-align: left !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  font-size: 15px !important;
  font-weight: 500;
  display: flex !important;
  align-items: center !important;
  width: 100%;
  box-sizing: border-box;
  transition: background var(--transition), color var(--transition);
}

.zhezhaoContainer .zhezhao .el-submenu {
  margin: 0 12px !important;
  padding: 0 !important;
}

.zhezhaoContainer .zhezhao .el-submenu > .el-submenu__title {
  margin: 4px 0 !important;
  padding-right: 36px !important;
}

.zhezhaoContainer .zhezhao > .el-menu > .el-menu-item.gotoprivacy {
  margin: 4px 12px !important;
}

.zhezhaoContainer .zhezhao .el-menu-item:hover,
.zhezhaoContainer .zhezhao .el-submenu__title:hover,
.zhezhaoContainer .zhezhao .gotohome .el-menu-item:hover {
  background: rgba(79, 70, 229, 0.08) !important;
  color: var(--primary) !important;
}

.zhezhaoContainer .zhezhao .el-menu-item.is-active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.08)) !important;
  color: var(--primary) !important;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary);
}

/* 图标样式 — Home / Classify / Privacy 统一尺寸 */
.zhezhaoContainer .zhezhao .el-menu-item i,
.zhezhaoContainer .zhezhao .el-submenu__title i:not(.el-submenu__icon-arrow),
.zhezhaoContainer .zhezhao .gotohome .el-menu-item i,
.zhezhaoContainer .zhezhao .gotohome .el-menu-item [class*="el-icon"] {
  color: var(--primary) !important;
  font-size: 18px !important;
  margin-right: 12px !important;
  margin-left: 0 !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  text-align: center;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.08) !important;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.zhezhaoContainer .zhezhao .el-menu-item:hover i,
.zhezhaoContainer .zhezhao .el-submenu__title:hover i:not(.el-submenu__icon-arrow),
.zhezhaoContainer .zhezhao .gotohome .el-menu-item:hover i {
  background: rgba(79, 70, 229, 0.15) !important;
  color: var(--primary-dark) !important;
}

/* 子菜单展开箭头 */
.zhezhaoContainer .zhezhao .el-submenu__icon-arrow {
  color: var(--text-muted) !important;
  font-size: 12px !important;
  right: 16px !important;
  margin-top: -6px;
  transition: transform var(--transition), color var(--transition);
}

.zhezhaoContainer .zhezhao .el-submenu.is-opened > .el-submenu__title .el-submenu__icon-arrow {
  color: var(--primary) !important;
}

/* 子菜单分类列表 */
.zhezhaoContainer .zhezhao .el-menu--inline {
  background: rgba(79, 70, 229, 0.03) !important;
  margin: 0 12px 8px !important;
  border-radius: 12px;
  padding: 6px 0 !important;
  border: 1px solid rgba(79, 70, 229, 0.06);
}

.zhezhaoContainer .zhezhao .el-menu-item-group__title {
  display: none !important;
  padding: 0 !important;
}

.zhezhaoContainer .zhezhao .el-menu--inline .el-menu-item {
  min-height: 40px;
  padding: 10px 16px 10px 28px !important;
  margin: 2px 6px !important;
  font-size: 13px !important;
  font-weight: 400;
  color: var(--text-secondary) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  position: relative !important;
}

.zhezhaoContainer .zhezhao .el-menu--inline .el-menu-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.zhezhaoContainer .zhezhao .el-menu--inline .el-menu-item:hover {
  background: rgba(79, 70, 229, 0.08) !important;
  color: var(--primary) !important;
}

.zhezhaoContainer .zhezhao .el-menu--inline .el-menu-item:hover::before {
  opacity: 1;
  background: var(--primary);
}

.zhezhaoContainer .zhezhao .el-menu--inline .el-menu-item i {
  display: none !important;
}

/* 覆盖原 style.css 居中 & 灰色背景 */
.zhezhaoContainer .zhezhao li,
.zhezhaoContainer .zhezhao .el-icon-s-home,
.zhezhaoContainer .zhezhao .el-submenu__title,
.zhezhaoContainer .zhezhao .el-menu-item {
  text-align: left !important;
  background-color: transparent !important;
}

/* Privacy 项特殊色 */
.zhezhaoContainer .zhezhao .gotoprivacy i {
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.1) !important;
}

.zhezhaoContainer .zhezhao .gotoprivacy:hover i {
  background: rgba(245, 158, 11, 0.18) !important;
}

/* 菜单项文字 */
.zhezhaoContainer .zhezhao .el-menu-item span,
.zhezhaoContainer .zhezhao .el-submenu__title span,
.zhezhaoContainer .zhezhao .gotohome .el-menu-item span {
  flex: 1;
  text-transform: capitalize;
  text-align: left;
  line-height: 1.4;
}

/* 隐藏 Element UI 默认多余图标 */
.zhezhaoContainer .zhezhao .gotohome .el-menu-item::after,
.zhezhaoContainer .zhezhao .el-menu-item.gotoprivacy::after {
  display: none !important;
  content: none !important;
}

/* 滚动条美化 */
.zhezhaoContainer .zhezhao::-webkit-scrollbar {
  width: 4px;
}

.zhezhaoContainer .zhezhao::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.2);
  border-radius: 4px;
}

/* ===== 广告位 ===== */
div:has(> #AdvSpace) {
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

#AdvSpace {
  position: relative;
  min-height: 280px;
  max-width: var(--max-width);
  width: 100% !important;
  margin: 16px auto !important;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.98)),
    var(--bg-card);
  border: 1px solid rgba(79, 70, 229, 0.12);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

#AdvSpace::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(6, 182, 212, 0.2), rgba(167, 139, 250, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

#AdvSpace::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

#AdvSpace > div:first-child {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center !important;
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

/* ===== 首页 home.html ===== */
@keyframes sectionFadeUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.home {
  width: 100% !important;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px 80px;
  position: relative;
}

/* 仅取消区块级 translate，保留卡片 hover 动画 */
.home > div,
.home .category-games-wrapper,
.home .gameContainer,
.home .gameContainer .gameDiv {
  transform: none !important;
}

.home > div,
.home .category-games-wrapper {
  position: relative;
  margin-bottom: 24px;
  padding: 20px 14px 22px;
  background: linear-gradient(160deg, #ffffff 0%, #fafbff 55%, #f5f7ff 100%);
  border-radius: 18px;
  border: 1px solid rgba(79, 70, 229, 0.1);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow: hidden;
  animation: sectionFadeUp 0.55s ease both;
}

/* 顶部彩虹装饰条 */
.home > div::before,
.home .category-games-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  opacity: 0.85;
}

/* 右上角装饰光斑 */
.home > div::after,
.home .category-games-wrapper::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}

/* 各分类区块交替主题色 */
.home .category-games-wrapper::before { background: var(--gradient-warm); }
.home > div:nth-of-type(2)::before { background: var(--gradient-cool); }
.home > div:nth-of-type(3)::before { background: var(--gradient-violet); }
.home > div:nth-of-type(4)::before { background: var(--gradient-warm); }
.home > div:nth-of-type(5)::before { background: var(--gradient-hero); }
.home > div:nth-of-type(6)::before { background: var(--gradient-cool); }
.home > div:nth-of-type(7)::before { background: var(--gradient-violet); }
.home > div:nth-of-type(8)::before { background: var(--gradient-warm); }

.home > div:nth-of-type(2),
.home > div:nth-of-type(4),
.home > div:nth-of-type(6),
.home > div:nth-of-type(8) {
  background: linear-gradient(160deg, #ffffff 0%, #f8fffe 55%, #f0fdf9 100%);
}

.home > div:nth-of-type(3),
.home > div:nth-of-type(7) {
  background: linear-gradient(160deg, #ffffff 0%, #faf8ff 55%, #f5f3ff 100%);
}

/* 入场动画错开 */
.home .category-games-wrapper { animation-delay: 0.05s; }
.home > div:nth-of-type(2) { animation-delay: 0.1s; }
.home > div:nth-of-type(3) { animation-delay: 0.15s; }
.home > div:nth-of-type(4) { animation-delay: 0.2s; }
.home > div:nth-of-type(5) { animation-delay: 0.25s; }
.home > div:nth-of-type(6) { animation-delay: 0.3s; }
.home > div:nth-of-type(7) { animation-delay: 0.35s; }
.home > div:nth-of-type(8) { animation-delay: 0.4s; }

.home .words {
  position: relative;
  z-index: 1;
  margin: 0 0 18px !important;
  padding: 0 4px 14px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.home .words::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.2), rgba(6, 182, 212, 0.15) 50%, transparent);
}

  .home .words .category-games-title {
    font-size: 15px !important;
    padding-left: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  padding-left: 38px;
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 分类图标徽章 */
.home .words .category-games-title::before {
  content: "🎮";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.08);
}

.home .category-games-wrapper .category-games-title::before { content: "⚡"; }
.home > div:nth-of-type(2) .category-games-title::before { content: "🕹️"; }
.home > div:nth-of-type(3) .category-games-title::before { content: "🎨"; }
.home > div:nth-of-type(4) .category-games-title::before { content: "💖"; }
.home > div:nth-of-type(5) .category-games-title::before { content: "✨"; }
.home > div:nth-of-type(6) .category-games-title::before { content: "🌐"; }
.home > div:nth-of-type(7) .category-games-title::before { content: "🎯"; }
.home > div:nth-of-type(8) .category-games-title::before { content: "🧩"; }

.home .words .more {
  position: relative;
  margin: 0 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 7px 14px 7px 16px;
  border-radius: 999px;
  background: var(--gradient-hero);
  box-shadow: 0 3px 12px rgba(79, 70, 229, 0.28);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.home .words .more::after {
  content: "→";
  margin-left: 4px;
  display: inline-block;
  transition: transform var(--transition);
}

.home .words .more:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38);
}

.home .words .more:hover::after {
  transform: translateX(3px);
}

/* 游戏网格 */
.home .gameContainer {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 0 !important;
  justify-content: unset !important;
  flex-wrap: unset !important;
  width: 100%;
  max-width: 100%;
}

.home .gameContainer .gameDiv {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home .gameContainer .gameDiv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.55) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.home .gameContainer .gameDiv::after {
  content: "▶";
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) scale(0.6);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  background: rgba(79, 70, 229, 0.88);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.45);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.home .gameContainer .gameDiv:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.22);
}

.home .gameContainer .gameDiv:hover::before {
  opacity: 1;
}

.home .gameContainer .gameDiv:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.home .gameContainer .gameDiv img {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
  transition: transform 0.4s ease;
}

.home .gameContainer .gameDiv:hover img {
  transform: scale(1.06);
  filter: brightness(1.02);
}

.home .gameContainer .gameDiv p,
.home .gameContainer p {
  width: 100% !important;
  margin: 0;
  padding: 10px 8px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center !important;
  color: var(--text-primary);
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
  -webkit-box-pack: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  transition: color var(--transition), background var(--transition);
}

.home .gameContainer .gameDiv:hover p {
  color: var(--primary);
  background: linear-gradient(180deg, #fafbff 0%, #eef2ff 100%);
}

/* ===== 详情页 view.html：修复 absolute / display:contents 重叠 ===== */
.details-game-inner {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: calc(100% - 32px) !important;
  max-width: var(--max-width);
  margin: 20px auto 28px !important;
  padding: 28px 20px !important;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  gap: 20px;
  box-sizing: border-box;
}

.details-game-icon {
  width: 140px !important;
  height: 140px !important;
  position: relative !important;
  text-align: center;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.details-game-icon img {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 14px;
}

.btn.btn-play.details-game-play-button,
button.btn-play {
  position: relative !important;
  width: auto !important;
  min-width: 200px;
  max-width: 280px;
  margin: 0 !important;
  padding: 14px 36px !important;
  line-height: 1.2 !important;
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35) !important;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn.btn-play.details-game-play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.45) !important;
}

.btn.btn-play.details-game-play-button a {
  color: #fff !important;
  text-decoration: none;
}

/* 推荐游戏：覆盖原 50px 横排 flex */
.otherGameContainer {
  width: calc(100% - 32px) !important;
  max-width: var(--max-width);
  margin: 0 auto 80px !important;
}

.otherGameContainer .likeAndHot {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 20px 16px 24px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.otherGameContainer .likeAndHot .detailAndMore {
  display: block !important;
}

.otherGameContainer h3 {
  margin: 0 0 16px !important;
  font-size: 17px;
  font-weight: 700;
  padding-left: 12px;
  position: relative;
}

.otherGameContainer h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 2px;
}

.like-popular-games {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
}

.otherGameContainer .otherGame {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  margin: 0 !important;
  background: var(--bg-page);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.otherGameContainer .otherGame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.otherGameContainer .otherGame img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}

.otherGameContainer .otherGame p {
  margin: 0;
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.detailContainer {
  display: none;
}

/* ===== 页脚 ===== */
.footer {
  position: relative;
  margin-top: auto;
  padding: 24px 16px !important;
  height: auto !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, #fff 100%);
  border-top: none;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-hero);
  opacity: 0.6;
}

.footer .Privacy {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 14px;
  color: var(--primary);
  font-weight: 600;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer .Privacy:hover {
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .home .gameContainer {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .like-popular-games {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }

  .home .gameContainer .gameDiv p,
  .otherGameContainer .otherGame p {
    font-size: 13px;
    padding: 10px;
  }

  .details-game-icon {
    width: 180px !important;
    height: 180px !important;
  }
}

@media (min-width: 1000px) {
  .home .gameContainer {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    flex-wrap: unset !important;
    justify-content: unset !important;
    margin-bottom: 0 !important;
    overflow: visible;
  }

  .home .gameContainer .gameDiv {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .home .gameContainer img,
  .home .gameContainer .gameDiv img {
    width: 100% !important;
  }

  .home .words {
    margin-top: 0 !important;
    margin-left: 0 !important;
  }

  .home .words .more {
    margin-right: 0 !important;
  }
}

@media (min-width: 1024px) {
  .home .gameContainer {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .like-popular-games {
    grid-template-columns: repeat(6, 1fr) !important;
  }

  .home {
    padding: 16px 24px 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home > div,
  .home .category-games-wrapper {
    animation: none;
  }

  .home .gameContainer .gameDiv,
  .home .gameContainer .gameDiv img,
  .home .gameContainer .gameDiv::before,
  .home .gameContainer .gameDiv::after {
    transition: none;
  }
}

@media (max-width: 480px) {
  .header.h-box {
    height: 58px;
    padding: 0 10px;
    gap: 8px;
  }

  .header .gotohome {
    padding: 4px 6px 4px 4px;
    border-radius: 10px;
  }

  .header .domain {
    height: 28px !important;
  }

  .header .search-container .search-input {
    height: 36px !important;
    font-size: 13px;
    padding: 0 38px 0 12px !important;
  }

  .header .search-container .search-icon {
    width: 26px;
    height: 26px;
    padding: 5px;
  }

  .header .icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px;
  }

  .header .icon li {
    width: 16px !important;
  }

  .home {
    padding: 8px 10px 80px;
  }

  .home > div,
  .home .category-games-wrapper {
    padding: 14px 8px 16px;
  }

  .home .gameContainer {
    gap: 8px !important;
  }

  .home .gameContainer .gameDiv p,
  .home .gameContainer p {
    font-size: 11px;
    padding: 6px 4px 8px;
  }

  .home .words .category-games-title {
    font-size: 15px !important;
    padding-left: 34px;
  }

  .home .words .category-games-title::before {
    width: 26px;
    height: 26px;
    font-size: 12px;
    border-radius: 8px;
  }

  .home .words .more {
    font-size: 11px;
    padding: 6px 10px 6px 12px;
  }

  /* 移动端隐藏 hover 播放按钮，避免误触残留 */
  .home .gameContainer .gameDiv::after {
    display: none;
  }

  .home .gameContainer .gameDiv::before {
    display: none;
  }

  .home .gameContainer .gameDiv:active {
    transform: scale(0.97);
  }
}

@media (max-width: 360px) {
  .home .gameContainer img {
    width: 100% !important;
    height: auto !important;
  }
}

@media (min-width: 1000px) {
    .home div {
        transform: translate(0, 0);
    }
}
