/* 自定义样式 */
body {
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* Added desktop container with 680px width */
@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    background-color: #f9fafb;
  }

  .desktop-container {
    width: 540px;
    max-width: 540px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-banner {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 50%, #4ecdc4 100%);
}
.grid .text-xs{
     white-space: nowrap;      /* 禁止文本换行 */
    overflow: hidden;         /* 隐藏溢出内容 */
    text-overflow: ellipsis;  /* 显示省略号 */
    width: 100%; 
    display: block;
}
.grid   .text-sm{
     white-space: nowrap;      /* 禁止文本换行 */
    overflow: hidden;         /* 隐藏溢出内容 */
    text-overflow: ellipsis;  /* 显示省略号 */
    width: 100%; 
}

 .el{
     white-space: nowrap;      /* 禁止文本换行 */
    overflow: hidden;         /* 隐藏溢出内容 */
    text-overflow: ellipsis;  /* 显示省略号 */
    width: 100%; 
}

/* 三大功能区 - 左右布局 */
    .features {
      display: flex;
      gap: 0.75rem;
      margin: 10px ;
    }

    /* 左侧试玩有奖 */
    .feature-left {
      flex: 1;
      background: #ffffff url('/assets/2/images/ic_home_swyj_bg.png') no-repeat center;
      background-size: contain;
      border-radius: 1.125rem;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-width: 0;
      box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.03);
      cursor: pointer;
      transition: all 0.3s ease;
      min-height: 10rem;
      position: relative;
      overflow: hidden;
    }

    .feature-left::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.1);
      z-index: 1;
      pointer-events: none;
    }

    .feature-left:hover {
      transform: translateY(-0.125rem);
      box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    }

    .feature-left-content {
      z-index: 2;
      position: relative;
    }

    .feature-right-icon-new {
      position: absolute;
      top: 1rem;
      right: 0;
      width: 5.25rem;
      height: 5.25rem;
      background: url('images/ic_home_swyj.png') no-repeat center;
      background-size: contain;
      z-index: 2;
    }

    .feature-left-title {
      font-size: 1.125rem;
      font-weight: bold;
      margin-bottom: 0.25rem;
      color: #222222;
      position: relative;
      z-index: 2;
    }

    .feature-left-desc {
      font-size: 0.8125rem;
      color: #666666;
      position: relative;
      z-index: 2;
    }





    /* 右侧上下两个卡片 */
    .feature-right {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .feature-card-small {
      background: url('images/ic_home_yk_bg.png') no-repeat center;
      background-size: cover;
      border-radius: 1rem;
      padding: 1.125rem 0.625rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-width: 0;
      box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.03);
      cursor: pointer;
      transition: all 0.3s ease;
      flex: 1;
      position: relative;
      overflow: hidden;
    }

    .feature-card-small::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.1);
      z-index: 1;
      pointer-events: none;
    }

    .feature-card-small:hover {
      transform: translateY(-0.125rem);
      box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    }

    .feature-card-title {
      font-size: 1rem;
      font-weight: bold;
      margin-bottom: 0.25rem;
      color: #222222;
      position: relative;
      z-index: 2;
    }

    .feature-card-desc {
      font-size: 0.75rem;
      color: #666666;
      position: relative;
      z-index: 2;
    }

    .feature-right-icon {
      position: absolute;
      right: 0;
      top: 0;
      width: 4rem;
      height: 3.25rem;
      border-radius: 0.75rem;
      flex-shrink: 0;
      z-index: 2;
    }

    .monthly-icon {
      background: url('images/ic_home_yk.png') no-repeat center;
      background-size: contain;
    }

    .save-icon {
      background: url('images/ic_home_sqk.png') no-repeat center;
      background-size: contain;
    }


 /* 搜索框和签到区域 */
    .search-sign-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #ffffff;
      padding: 10px;
    }

    .search-box {
      flex: 1;
      display: flex;
      align-items: center;
      /* background: #f8f9fa; */
      border: 0.0625rem solid #DDDDDD;
      border-radius: 1rem;
      padding: 10px 1rem;
      margin-left: 0.75rem;
      transition: all 0.3s ease;
    }

    .search-box:focus-within,
    .search-box.search-active {
      background: #ffffff;
      box-shadow: 0 0 0 0.125rem rgba(42, 203, 175, 0.2);
    }

    .search-box.search-active .search-icon {
      opacity: 1;
    }
.searchForm{
    width: 86%;
}
    .search-icon {
      width: 1.25rem;
      height: 1.25rem;
      margin-right: 0.625rem;
      opacity: 0.6;
    }

    .search-input {
      flex: 1;
      border: none;
      background: transparent;
      font-size: 0.875rem;
      color: #333333;
      outline: none;
    }

    .search-input::placeholder {
      color: #999999;
      font-size: 0.875rem;
    }

    .sign-button {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      border-radius: 1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      white-space: nowrap;
    }

    .sign-button:hover {
      transform: translateY(-0.0625rem);
      /* box-shadow: 0 0.25rem 0.75rem rgba(42, 203, 175, 0.4); */
    }

    .sign-button:active {
      transform: translateY(0);
    }

    .sign-icon {
      width: 1.5rem;
      height: 1.5rem;
    }

    .sign-text {
      color: #ACB1B2;
      font-size: 1.2rem;
      font-weight: 600;
    }
