@import url("./main.css");
@import "search_mobile.css";

:root {
  --theme-primary: #f1d234;
  --theme-secondary: #f8e374;
  --theme-dark: #1a1a1a;
  --theme-gray: #2a2a2a;
  --theme-overlay: rgba(241, 210, 52, 0.1);
  --gradient-bg: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.searchPage {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  background: var(--gradient-bg);
}

.search-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(241, 210, 52, 0.2);
}

.header {
  width: 100%;
  padding: 20px;
}

.header .top-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }

.header .top-bar .logo img {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(241, 210, 52, 0.2);
      }

.header .top-bar .search-wrapper {
      flex: 1;
      position: relative;
    }

.header .top-bar .search-wrapper .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-style: normal;
        color: #f1d234;
        color: var(--theme-primary);
      }

.header .top-bar .search-wrapper input {
        width: 100%;
        padding: 15px 15px 15px 45px;
        background: #2a2a2a;
        background: var(--theme-gray);
        border: 2px solid transparent;
        border-radius: 16px;
        color: #f1d234;
        color: var(--theme-primary);
        font-size: 1.1em;
        transition: all 0.3s ease;
      }

.header .top-bar .search-wrapper input:focus {
          border-color: #f1d234;
          border-color: var(--theme-primary);
          box-shadow: 0 0 0 4px rgba(241, 210, 52, 0.1);
          box-shadow: 0 0 0 4px var(--theme-overlay);
          outline: none;
        }

.header .top-bar .search-wrapper input::-moz-placeholder {
          color: rgba(241, 210, 52, 0.4);
        }

.header .top-bar .search-wrapper input::placeholder {
          color: rgba(241, 210, 52, 0.4);
        }

.header .top-bar .close-icons img {
        width: 40px;
        height: 40px;
        padding: 8px;
        border-radius: 12px;
        background: #2a2a2a;
        background: var(--theme-gray);
        transition: all 0.3s ease;
      }

.header .top-bar .close-icons img:hover {
          background: #f1d234;
          background: var(--theme-primary);
          transform: rotate(90deg);
        }

.search-info {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.search-info .info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

.search-info .info-wrapper .category {
      color: #f1d234;
      color: var(--theme-primary);
      font-size: 1.5em;
    }

.search-info .info-wrapper .search-stats {
      color: #f1d234;
      color: var(--theme-primary);
      font-size: 1.1em;
      opacity: 0.8;
    }

.quick-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-filters .filter-tag {
    padding: 8px 20px;
    background: #2a2a2a;
    background: var(--theme-gray);
    border: 2px solid transparent;
    border-radius: 30px;
    color: #f1d234;
    color: var(--theme-primary);
    cursor: pointer;
    transition: all 0.3s ease;
  }

.quick-filters .filter-tag:hover {
      border-color: #f1d234;
      border-color: var(--theme-primary);
      transform: translateY(-2px);
    }

.quick-filters .filter-tag.active {
      background: #f1d234;
      background: var(--theme-primary);
      color: #1a1a1a;
      color: var(--theme-dark);
    }

.searchFloatContent {
  flex: 1;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 25px;
  gap: 25px;
  overflow-y: auto;
}

.searchFloatContent .search_gameItem {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: #2a2a2a;
    background: var(--theme-gray);
    transition: all 0.4s ease;
  }

.searchFloatContent .search_gameItem img {
      width: 100%;
      height: 100%;
      -o-object-fit: cover;
         object-fit: cover;
      transition: all 0.4s ease;
    }

.searchFloatContent .search_gameItem .gameTitle {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 15px;
      background: rgba(26, 26, 26, 0.9);
      -webkit-backdrop-filter: blur(10px);
              backdrop-filter: blur(10px);
      color: #f1d234;
      color: var(--theme-primary);
      font-size: 1.1em;
      transform: translateY(0);
      transition: all 0.4s ease;
    }

.searchFloatContent .search_gameItem:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 24px rgba(241, 210, 52, 0.2);
    }

.searchFloatContent .search_gameItem:hover img {
        transform: scale(1.1);
      }

.searchFloatContent .search_gameItem:hover .gameTitle {
        background: #f1d234;
        background: var(--theme-primary);
        color: #1a1a1a;
        color: var(--theme-dark);
      }

.initial-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.initial-hint .hint-content {
    padding: 40px;
    background: #2a2a2a;
    background: var(--theme-gray);
    border-radius: 20px;
    display: inline-block;
  }

.initial-hint .hint-content .hint-icon {
      font-size: 4em;
      margin-bottom: 20px;
    }

.initial-hint .hint-content h3 {
      color: #f1d234;
      color: var(--theme-primary);
      font-size: 1.8em;
      margin-bottom: 10px;
    }

.initial-hint .hint-content p {
      color: rgba(241, 210, 52, 0.6);
      font-size: 1.2em;
    }

.nodata {
  text-align: center;
  padding: 40px;
  background: #2a2a2a;
  background: var(--theme-gray);
  border-radius: 20px;
}

.nodata h1 {
    color: #f1d234;
    color: var(--theme-primary);
    margin-bottom: 15px;
  }

.nodata h4 {
    color: rgba(241, 210, 52, 0.6);
    margin-bottom: 25px;
  }

.nodata .suggested-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

.nodata .suggested-tags span {
      padding: 8px 20px;
      background: rgba(241, 210, 52, 0.1);
      background: var(--theme-overlay);
      border: 2px solid #f1d234;
      border: 2px solid var(--theme-primary);
      border-radius: 30px;
      color: #f1d234;
      color: var(--theme-primary);
      cursor: pointer;
      transition: all 0.3s ease;
    }

.nodata .suggested-tags span:hover {
        background: #f1d234;
        background: var(--theme-primary);
        color: #1a1a1a;
        color: var(--theme-dark);
      }

/* 自定义滚动条 */
.searchFloatContent::-webkit-scrollbar {
  width: 10px;
}

.searchFloatContent::-webkit-scrollbar-track {
  background: #2a2a2a;
  background: var(--theme-gray);
  border-radius: 5px;
}

.searchFloatContent::-webkit-scrollbar-thumb {
  background: #f1d234;
  background: var(--theme-primary);
  border-radius: 5px;
}

.searchFloatContent::-csstools-invalid--webkit-scrollbar-thumb:hover {
    background: #f8e374;
    background: var(--theme-secondary);
  }
