/* ========== 全局样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* 去除移动端点击高亮效果 */
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: clip;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
  background: #C6D7FE;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: #C6D7FE;
  min-height: 100vh;
  padding-bottom: 0;
  color: #3a5a7c;
  position: relative;
  overflow-x: clip;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 使用固定定位的伪元素作为背景渐变，避免切Tab时页面高度变化导致渐变偏移 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(100, 150, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(150, 100, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(200, 220, 255, 0.1) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* ========== 下拉整体容器 ========== */
.pull-wrapper {
  position: relative;
}

/* 仅手机端需要will-change优化 */
@media (max-width: 640px) {
  .pull-wrapper {
    will-change: transform;
  }
}

/* ========== 顶部额外头图 ========== */
.header-top-banner {
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.header-top-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== 粒子动画Canvas ========== */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;  /* 在头图img之上、overlay文字层之下 */
  pointer-events: none;
  display: none;
}

/* ========== 头图区域 ========== */
.header-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  border-bottom: none;
}

.header-img {
  width: 100%;
  height: auto;
  display: block;
  display: block;
  opacity: 1;
}

/* 头图与内容区域之间的渐变过渡带 */
.header-fade {
  display: none;
}

.header-img.revealed {
  opacity: 1;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(100, 130, 180, 0.15) 0%, rgba(150, 180, 220, 0.25) 50%, rgba(200, 220, 255, 0.75) 85%, rgba(230, 240, 255, 0.9) 100%);
  z-index: 1;
  opacity: 1;
}

/* 返回按钮（左上角，存在同源上级页面时显示） */
.back-btn {
  position: absolute;
  top: 54px;
  left: 12px;
  z-index: 11;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.15s ease;
}

.back-btn:active {
  background: rgba(0, 0, 0, 0.55);
  transform: scale(0.94);
}

.back-btn[hidden] {
  display: none !important;
}

/* 当显示返回按钮时，把原关闭按钮往右挪一格，避免重叠 */
.back-btn:not([hidden]) ~ .close-btn {
  left: 56px;
}

/* 关闭按钮 */
.close-btn {
  position: absolute;
  top: 54px;
  left: 12px;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  -webkit-tap-highlight-color: transparent;
}

.close-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 分享按钮 */
.share-btn {
  position: absolute;
  top: 54px;
  right: 12px;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  -webkit-tap-highlight-color: transparent;
}

.share-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-overlay.revealed {
  opacity: 1;
}

/* ========== 头图操作按钮（返回 & 分享） ========== */
.header-action-btn {
  position: absolute;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(100, 100, 180, 0.5);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1a1a4c;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(100, 150, 200, 0.5);
  color: #4a6a8c;
  box-shadow: 0 0 12px rgba(100, 150, 200, 0.25);
  transform: scale(1.05);
}

.header-action-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.9);
}

.header-action-btn svg {
  flex-shrink: 0;
}

.back-btn {
  left: 12px;
}

.share-btn {
  right: 12px;
}

.header-title {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(90deg, #013193 0%, #2a40b3 25%, #6a60cc 50%, #8a70dc 75%, #C289EC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: skewX(-8deg);
  letter-spacing: 4px;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.header-subtitle {
  font-size: 20px;
  color: #1a1a5c;
  margin-top: 8px;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 1), 0 2px 10px rgba(255, 255, 255, 0.95);
  font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-weight: 600;
  font-style: italic;
}

/* ========== 游戏列表容器 ========== */
.game-list-container {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 16px 16px;
  position: relative;
  z-index: 2;
  margin-top: 0;
  border-radius: 0;
  background: #CDE0FA;
  -webkit-overflow-scrolling: touch;
}

/* ========== 加载失败错误态 ========== */
.load-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 16px 120px 16px;
  text-align: center;
}

.load-error-text {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
}

.load-error-retry {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  background: #4A90E2;
  color: #fff;
  font-size: 14px;
  padding: 10px 28px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.load-error-retry:hover:not(:disabled) {
  background: #3A80D2;
}

.load-error-retry:active:not(:disabled) {
  background: #2A70C2;
}

.load-error-retry:disabled {
  background: #B0C4DE;
  cursor: not-allowed;
}

/* ========== 精选推荐模块 ========== */
.jingpin-banner-container {
  width: 100%;
  position: relative;
  margin: 0;
  padding: 8px;
  overflow: visible;
  z-index: 1;
  background: #CDE0FA;
}

.jingpin-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.jingpin-title-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c5ce0);
  border-radius: 1px;
}

.jingpin-title-line:last-child {
  background: linear-gradient(90deg, #7c5ce0, transparent);
}

.jingpin-title-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #7c5ce0, #4a9eff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.featured-banner-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.featured-banner-img {
  width: 100%;
  height: auto;
  display: block;
}
.featured-section {
  margin-top: 0;
  margin-bottom: 2px;
  width: 100%;
}

.featured-header {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding: 0;
  gap: 12px;
  width: 100%;
}

.featured-title-text {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a5f;
  white-space: nowrap;
}

.featured-title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 58, 95, 0.2) 0%, rgba(30, 58, 95, 0.4) 100%);
}

.featured-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e3a5f;
  position: relative;
  padding-left: 12px;
}

.featured-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #4A90E2 0%, #2D5AA0 100%);
  border-radius: 2px;
}

.featured-title-img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 12px 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  /* 容器向右延伸，让初始状态右边贴边 */
  margin-right: -16px !important;
}

.featured-scroll-spacer-left {
  flex-shrink: 0;
  width: 0px;
  min-width: 0px;
}

.featured-scroll-spacer-right {
  flex-shrink: 0;
  width: 0px;
  min-width: 0px;
}

/* 小屏 */
@media (max-width: 375px) {
  .featured-scroll-container {
    margin-right: -10px !important;
  }
}

.featured-scroll-spacer {
  flex-shrink: 0;
  width: 0 !important;
  min-width: 0 !important;
  /* 调试用背景色 */
  background: rgba(0, 255, 0, 0.3);
}

.featured-scroll-spacer-right {
  flex-shrink: 0;
  width: 0 !important;
  min-width: 0 !important;
}

/* 隐藏滚动条但保持滚动功能 */
.featured-scroll-container::-webkit-scrollbar {
  display: none;
}
.featured-scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.featured-card {
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: start;
  cursor: pointer;
}

.featured-card:active {
  transform: none;
}

.featured-cover-wrap {
  width: 180px;
  height: 108px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  border: none;
  position: relative;
  margin-bottom: 8px;
  background: #dce6f5;
}

/* 精选卡片右下角 PV 角标 */
.featured-pv-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.featured-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #dce6f5;
}

.featured-card-title {
  font-size: 14px;
  font-weight: normal;
  color: #1a1a1a;
  line-height: 1.4;
  text-align: left;
  padding-left: 0.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-title-text {
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

/* ========== Tab 导航栏 ========== */
/* 外层：只负责 sticky 定位与吸顶背景 */
.tab-nav {
  padding: 6px 0;
  margin-left: 0;
  margin-right: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate; /* 建立独立层叠上下文，让 ::before z-index:-1 不穿透到页面背景 */
}

/* 内层：胶囊条，装三个 tab 按钮 */
.tab-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
}

/* 吸顶状态：tab-nav 自身改为不透明底，避免滚动内容透出；用伪元素铺通屏背景遮挡两侧 */
.tab-nav.stuck {
  background: #e8f1fd;
}

.tab-nav.stuck::before {
  content: '';
  position: absolute;
  left: -16px;
  right: -16px;
  top: 0;
  bottom: -8px;
  background: #CDE0FA;
  z-index: -1;
}

/* 端内吸顶时额外撑开 54px 顶部留白遮住上方内容 */
body.in-app .tab-nav.stuck {
  margin-top: -54px;
  padding-top: 60px;
}
body.in-app .tab-nav.stuck::before {
  top: 0;
}

/* 端外吸顶时只需下缘留一点呼吸 */
body.external-app .tab-nav.stuck {
  margin-bottom: 12px;
}

.tab-btn {
  flex: 1;
  height: 36px;
  padding: 0;
  position: relative;
  z-index: 1;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

/* 激活态：去掉 btn 自身背景，渐变胶囊改为只包裹文字（见 .tab-btn.active .tab-btn-label） */
.tab-btn.active {
  background: transparent;
  box-shadow: none;
}

/* 隐藏已废弃的图片元素（保险起见） */
.tab-btn-img {
  display: none;
}

/* Tab 文字 */
.tab-btn-label {
  display: inline-block;
  text-align: center;
  font-size: 13px;
  color: #6b7b95;
  letter-spacing: 0.5px;
  pointer-events: none;
  line-height: 1;
  padding: 13px;
  font-weight: bold;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.tab-btn.active .tab-btn-label {
  color: #000;
  /* 上层：中间白色高光径向渐变（凸显文字）；下层：原蓝紫青线性渐变 */
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(90deg, #b49bff 0%, #7ab8ff 55%, #7fe3e0 100%);
  box-shadow: 0 2px 6px rgba(123, 135, 220, 0.25);
}

.tab-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tab 内容区域 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========== 分区标题 ========== */
.section-header {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #3a5a7c;
  text-shadow: 0 0 8px rgba(100, 150, 200, 0.15), 0 0 20px rgba(80, 130, 180, 0.08);
  letter-spacing: 1px;
}

/* ========== 卡片网格容器 ========== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.card-grid:first-of-type {
  margin-top: 12px;
}

/* ========== 游戏卡片 ========== */
.game-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(100, 150, 200, 0.1), inset 0 0 0 1px rgba(100, 150, 200, 0.1);
  transition: none;
  cursor: pointer;
  border: 1px solid rgba(100, 150, 200, 0.15);
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.game-card:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(100, 150, 200, 0.1), inset 0 0 0 1px rgba(100, 150, 200, 0.1);
  border-color: rgba(100, 150, 200, 0.15);
}

.game-card:active {
  transform: none;
  box-shadow: 0 1px 6px rgba(100, 150, 200, 0.1);
}

/* ========== 封面图 ========== */
.game-cover-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  position: relative;
  border: none;
  background: #dce6f5;
}

.game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none;
  background: #dce6f5;
}

/* 封面缺失时的灰色占位 */
.game-cover-placeholder,
.featured-cover-placeholder {
  background: #e5e5e5;
}

.game-card:hover .game-cover {
  transform: none;
}

/* ========== 游戏信息 ========== */
.game-info {
  flex: 1;
  margin: 0 10px;
  min-width: 0;
  overflow: hidden;
}

.game-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e3a5f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  text-shadow: none;
}

.game-subtitle {
  font-size: 12px;
  color: #4a6a8c;
  margin-top: 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 当卡片同时展示 pv 时，为 pv 让出垂直空间，subtitle 只显示一行并省略 */
.game-info.has-pv .game-subtitle {
  display: block;
  white-space: nowrap;
  -webkit-line-clamp: initial;
  line-clamp: initial;
}

/* PV 使用人数（接口返回的"xxx+人用过"） */
.game-pv {
  font-size: 11px;
  color: #8a9bb0;
  margin-top: 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 操作按钮 ========== */
.game-action-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid rgba(100, 150, 200, 0.5);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #5a7a9c;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(100, 150, 200, 0.1);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  letter-spacing: 1px;
}

.game-action-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(100, 150, 200, 0.15);
  border-radius: 0;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.game-action-btn:active::after {
  width: 200px;
  height: 200px;
}

.game-action-btn:hover {
  transform: scale(1.05);
  background: rgba(100, 150, 200, 0.12);
  box-shadow: 0 0 16px rgba(100, 150, 200, 0.2), 0 0 30px rgba(100, 150, 200, 0.08);
  text-shadow: 0 0 6px rgba(100, 150, 200, 0.25);
  color: #3a5a7c;
}

.game-action-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 4px rgba(100, 150, 200, 0.15);
}

/* ========== Toast提示 ========== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.95);
  color: #3a5a7c;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(100, 150, 200, 0.25);
  box-shadow: 0 0 12px rgba(100, 150, 200, 0.15);
  font-family: 'PingFang SC', 'Noto Sans SC', sans-serif;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hidden {
  display: none;
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(100, 150, 200, 0.5);
}

/* ========== 底部图片 ========== */
.bottom-banner {
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.bottom-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== AI 免责声明 ========== */
.ai-disclaimer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ========== 卡片入场动画 ========== */
/* 禁用卡片动画，所有卡片一次性显示，避免逐个出现的视觉效果 */
.game-card.card-hidden,
.game-card.card-animate,
.game-card.card-visible {
  opacity: 1;
  transform: translateZ(0);
  animation: none;
}

/* 禁用 fadeInUp 动画 */
@keyframes fadeInUp {
  from {
    opacity: 1;
    transform: translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

/* ========== 手机端合并列表样式 ========== */
.mobile-list-wrap {
  width: 100%;
}

/* 分类锚点（不可见，仅做定位标记） */
.section-anchor {
  height: 0;
  width: 100%;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* 手机端分类标题 */
.section-header-mobile {
  display: block;
  padding: 4px 0 4px 0;
  margin: 8px 0;
}

.section-header-mobile:first-of-type {
  margin-top: 12px;
}

.section-title-mobile {
  font-size: 16px;
  font-weight: 600;
  color: #1B355C;
  text-shadow: none;
  letter-spacing: 1px;
  position: relative;
  padding-left: 0;
}

.section-title-mobile::before {
  display: inline-block;
  content: '• ';
  color: #1B355C;
  font-weight: 900;
  font-size: 1.2em;
  margin-right: 4px;
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(100, 150, 200, 0.5);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ===================================================
   响应式适配
   =================================================== */

/* 小屏手机 */
@media (max-width: 375px) {
  .game-list-container {
    padding: 12px 10px;
  }

  .featured-scroll-container {
    padding: 4px 0 12px 0;
  }

  .featured-scroll-spacer {
    width: 0 !important;
    min-width: 0 !important;
  }

  .featured-scroll-spacer-right {
    width: 0 !important;
    min-width: 0 !important;
  }

  .tab-nav {
    margin-bottom: 12px;
  }

  .tab-btn {
    padding: 0;
    border-radius: 0;
  }

  .tab-btn-label {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
  }

  .game-card {
    padding: 10px;
  }

  .game-cover-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .game-title {
    font-size: 14px;
  }

  .game-subtitle {
    font-size: 11px;
  }

  .game-pv {
    font-size: 10px;
  }

  .game-action-btn {
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .game-info {
    margin: 0 8px;
  }
}

/* 手机端禁用hover光晕效果 */
@media (max-width: 640px) {
  .tab-btn:not(.active):hover {
    color: #6a6a9c;
    background: transparent;
  }

  .game-card:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(100, 150, 200, 0.1), inset 0 0 0 1px rgba(100, 150, 200, 0.1);
    border-color: rgba(100, 150, 200, 0.15);
  }

  .game-card:hover .game-cover {
    transform: none;
  }

  .game-action-btn:hover {
    transform: none;
    background: transparent;
    box-shadow: 0 0 8px rgba(100, 150, 200, 0.1);
    text-shadow: none;
    color: #5a7a9c;
  }
}

/* 平板竖屏 (641px ~ 1023px) */
@media (min-width: 641px) and (max-width: 1023px) {
  /* 平板端（端外）隐藏关闭和分享按钮；端内（含折叠屏展开）保持显示 */
  body.external-app .close-btn {
    display: none !important;
  }

  body.external-app .share-btn {
    display: none !important;
  }

  body.external-app .back-btn {
    display: none !important;
  }

  /* 平板端背景改白色 */
  html {
    background: #ffffff;
  }

  /* 平板端整体居中，限制最大宽度 */
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    background: #ffffff;
  }

  #pull-wrapper {
    max-width: 640px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* 平板端底部图片宽度与页面内容一致 */
  .bottom-banner {
    max-width: 640px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}

/* PC端 (≥1024px) */
@media (min-width: 1024px) {
  body.external-app .back-btn {
    display: none !important;
  }

  /* PC端（端外）隐藏关闭和分享按钮；端内保持显示 */
  body.external-app .close-btn {
    display: none !important;
  }

  body.external-app .share-btn {
    display: none !important;
  }

  /* PC端背景改白色 */
  html {
    background: #ffffff;
  }

  /* PC端整体居中，限制最大宽度 */
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    background: #ffffff;
  }

  #pull-wrapper {
    max-width: 640px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* PC端底部图片宽度与页面内容一致 */
  .bottom-banner {
    max-width: 640px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}

/* 超宽屏 (≥1440px) */
@media (min-width: 1440px) {
  /* 超宽屏（端外）隐藏关闭和分享按钮；端内保持显示 */
  body.external-app .close-btn {
    display: none !important;
  }

  body.external-app .share-btn {
    display: none !important;
  }

  body.external-app .back-btn {
    display: none !important;
  }

  /* 超宽屏背景改白色 */
  html {
    background: #ffffff;
  }

  /* 超宽屏整体居中，限制最大宽度 */
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    background: #ffffff;
  }

  #pull-wrapper {
    max-width: 640px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* 超宽屏底部图片宽度与页面内容一致 */
  .bottom-banner {
    max-width: 640px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}
/* ========== 征集反馈悬浮球 ========== */
.zhengji-fab {
  position: fixed !important;
  right: 16px;
  bottom: 120px;
  z-index: 9999;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transform: none !important;
}

.zhengji-fab:active {
  transform: scale(0.92) !important;
}

.zhengji-fab-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
