.heart {
  width: 0.2rem !important;
}

#app {
  max-width: 768px;
  margin: 0 auto;
  background: #f5f7fa;
  min-height: 100vh;
  position: relative;
  padding-bottom: 1.2rem;
}

/* ===== 区块间距 ===== */
.main>div {
  margin-top: 0.35rem;
}

.main .first-game {
  margin-top: 0;
  padding-top: 0.15rem;
}

/* ===== 游戏卡片通用样式 ===== */
.popular {
  padding: 0 0.08rem;
}

.popular .games,
.first-game {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.1rem;
}

.first-game {
  padding: 0 0.08rem;
}

.popular .games .item,
.first-game .item {
  width: 100%;
  margin-left: 0;
  margin-bottom: 0;
  position: relative;
  transition: transform 0.25s ease;
}

.popular .games .item:active,
.first-game .item:active {
  transform: scale(0.96);
}

.popular .games img,
.first-game img {
  width: 100%;
  height: auto;
  border-radius: 0.1rem;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

.popular .games .item .item-content,
.first-game .item .item-content {
  margin-top: 0.08rem;
  font-size: 0.13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  font-weight: 700;
  -webkit-box-orient: vertical;
  color: #1a1a2e;
}

.popular .games .item .item-playnumber,
.first-game .item .item-playnumber {
  margin-top: 0.03rem;
  font-size: 0.11rem;
  color: #08979c;
  font-weight: 600;
}

/* ===== 收藏按钮 ===== */
.popular .games .mask,
.first-game .mask,
.new-releases .mask,
.quick .quick-games .quick-item .mask {
  display: none !important;
}

/* ===== 标题样式 ===== */
.title {
  font-weight: 700;
  font-size: 0.18rem;
  text-align: center;
  color: #1a1a2e;
  position: relative;
  padding-bottom: 0.14rem;
  margin-bottom: 0.06rem;
  letter-spacing: 0.05em;
}

.title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.35rem;
  height: 3px;
  background: #08979c;
  border-radius: 2px;
}

/* ===== New Releases 新区 ===== */
.new-releases {
  padding: 0 0.08rem;
}

.new-releases .games {
  margin-top: 0.18rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.08rem;
}

.new-releases .item {
  width: 100%;
  position: relative;
  margin-right: 0;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.new-releases .item:active {
  transform: scale(0.95);
}

.new-releases .item .item-content {
  margin-top: 0.06rem;
  font-size: 0.11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  font-weight: 600;
  color: #1a1a2e;
  text-align: center;
}

.new-releases img {
  width: 100%;
  height: auto;
  border-radius: 0.1rem;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ===== Quick Play 快速游戏 ===== */
.quick {
  padding: 0 0.08rem;
}

.quick .quick-games {
  display: flex;
  align-items: center;
  overflow-x: auto;
  margin-top: 0.18rem;
  padding: 0.05rem 0 0.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quick .quick-games::-webkit-scrollbar {
  display: none;
}

.quick .quick-games .quick-item {
  position: relative;
  margin-left: 0.08rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.quick .quick-games .quick-item:active {
  transform: scale(0.96);
}

.quick .quick-games .quick-item img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.12rem;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

.quick .quick-games .quick-item .mask {
  position: absolute;
  top: 0.06rem;
  right: 0.06rem;
  background: rgba(255, 255, 255, 0.9);
  width: 0.26rem;
  height: 0.26rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.quick .quick-games .quick-more {
  height: 1.5rem;
  margin-left: 0.08rem;
  margin-right: 0.08rem;
  border-radius: 0.12rem;
  background: #08979c;
  flex-shrink: 0;
  width: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 14px rgba(8, 151, 156, 0.25);
  transition: all 0.3s ease;
}

.quick .quick-games .quick-more:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(8, 151, 156, 0.2);
}

.quick .quick-games .quick-more div:nth-child(1) {
  margin-top: 0;
}

.quick .quick-games .quick-more div {
  width: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.14rem;
}

.quick .quick-games .quick-more img {
  width: 0.28rem;
  margin-bottom: 0.08rem;
}

/* ===== Our Picks 精选推荐 ===== */
.our {
  padding: 0 0.08rem;
}

.our .our-item {
  display: flex;
  align-items: center;
  background: #fff;
  margin: 0.08rem 0;
  border-radius: 0.12rem;
  padding: 0.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.our .our-item:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.our .our-item .out-item-img {
  padding: 0;
}

.our .our-item .out-item-img img {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0.1rem;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.our .our-item .content {
  padding-left: 0.12rem;
  font-size: 0.14rem;
  flex: 1;
}

.our .our-item .content .name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  color: #1a1a2e;
  font-size: 0.14rem;
}

.our .our-item .content .type {
  font-size: 0.11rem;
  margin-top: 0.04rem;
  color: #08979c;
  font-weight: 600;
  background: #e6f7f8;
  display: inline-block;
  padding: 0.02rem 0.08rem;
  border-radius: 0.1rem;
}

.our .our-item .content .number {
  font-size: 0.11rem;
  color: #666;
  font-weight: 600;
  margin-top: 0.04rem;
}

.our .our-item .play {
  background: #08979c;
  color: #fff;
  border-radius: 0.2rem;
  padding: 0.08rem 0.14rem;
  margin-right: 0.02rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.13rem;
  box-shadow: 0 2px 8px rgba(8, 151, 156, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.our .our-item .play:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(8, 151, 156, 0.2);
}

.our .our_more_games {
  margin: 0.12rem 0;
  border-radius: 0.26rem;
  border: 2px solid #08979c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.13rem;
  font-weight: 700;
  font-size: 0.16rem;
  color: #08979c;
  box-sizing: border-box;
  background: #fff;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.our .our_more_games:active {
  background: #08979c;
  color: #fff;
  transform: scale(0.97);
}

/* MORE GAMES 按钮在3列grid中占满整行 */
.first-game .more-games {
  grid-column: 1 / -1;
  width: auto;
  max-width: none;
  margin: 0.2rem 0 0.1rem;
}

.popular .more-games {
  width: 100%;
  max-width: none;
  margin: 0.2rem 0 0.1rem;
}
