    :root {
      --primary: #4F46E5;
      --secondary: #6366F1;
      --background: #F8FAFC;
      --surface: #FFFFFF;
      --text-primary: #1E293B;
      --text-secondary: #64748B;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: system-ui, -apple-system, sans-serif;
    }
    
    a{
      text-decoration: none;
    }

    body {
      background: var(--background);
      color: var(--text-primary);
      line-height: 1.5;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 1rem;
    }

    /* 全局重置 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }

    /* 容器系统 */
    .container {
      width: 100%;
      padding: 1rem;
      margin: 0 auto;
    }

    /* 头部导航重构 */
    .header {
      background: #fff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
      padding: 1rem 0;
    }

    .nav-wrapper {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    /* 移动优先搜索布局 */
    .search-container {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 0.5rem;
      width: 100%;
    }

    #searchInput {
      width: 100%;
      padding: 0.875rem 1.25rem;
      border: 2px solid #e2e8f0;
      border-radius: 2rem;
      font-size: 1rem;
      appearance: none;
      -webkit-appearance: none;
    }

    .search-btn {
      background: #4f46e5;
      color: white;
      padding: 0.875rem 1.5rem;
      border: none;
      border-radius: 2rem;
      font-size: 1rem;
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.2s;
    }

    /* 移动端优化 */
    @media (max-width: 640px) {
      .nav-wrapper {
        gap: 0.75rem;
      }

      #searchInput {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
      }

      .search-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
      }

      /* 虚拟键盘优化 */
      @media (max-height: 600px) {
        #searchInput {
          padding: 0.5rem 1rem;
        }
      }
    }

    /* 桌面端适配 */
    @media (min-width: 768px) {
      .container {
        max-width: 1280px;
      }

      .nav-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }

      .search-container {
        width: 600px;
      }
    }

    /* 游戏网格系统 */
    .games-title{
      margin-top: 2rem;
      font-size: 1.5rem;
    }
    
    .game-grid {
      display: grid;
      gap: 1.5rem;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      padding: 2rem 0;
    }

    .game-card {
      background: var(--surface);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      transition: transform 0.2s ease;
    }

    .game-card:hover {
      transform: translateY(-3px);
    }

    .game-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      background: #F1F5F9;
    }

    .game-content {
      padding: 1.25rem;
    }

    .game-title {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .game-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1rem;
    }

    .game-category {
      background: rgba(79, 70, 229, 0.1);
      color: var(--primary);
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 1rem;
    }
    .nav-menu .game-category{
      line-height: 2.5rem;
    }

    /* 评论系统 */
    .comments-section {
      margin: 2rem 0;
      background: var(--surface);
      border-radius: 12px;
      padding: 1.5rem;
    }

    .comment-form {
      display: grid;
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .comment-input {
      padding: 0.75rem;
      border: 2px solid #E2E8F0;
      border-radius: 8px;
      font-size: 1rem;
    }

    /* 页脚样式 */
    .site-footer {
      background: var(--surface);
      margin-top: 4rem;
      padding: 3rem 0;
      border-top: 1px solid #E2E8F0;
    }

    .footer-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
    }

    @media (max-width: 640px) {

      .game-grid {
        grid-template-columns: 1fr;
      }
    }

    /* 新增搜索框响应式样式 */
    .search-container {
      display: flex;
      gap: 1rem;
      align-items: center;
      width: 100%;
      max-width: 600px;
      margin-left: auto;
    }

    #searchInput {
      flex: 1;
      padding: 0.75rem 1.25rem;
      border: 2px solid #E2E8F0;
      border-radius: 2rem;
      font-size: 1rem;
      transition: all 0.3s ease;
    }

    /* 移动端优化 */
    @media (max-width: 768px) {
      .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
      }

      .search-container {
        width: 100%;
        margin: 0;
      }

      #searchInput {
        font-size: 0.875rem;
        padding: 0.6rem 1rem;
      }

      .logo {
        align-self: flex-start;
      }
    }

    .history-carousel {
      margin-bottom: 2rem;
    }
    
    .history-carousel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }
    
    .history-carousel h3 {
      margin: 0;
      font-size: 1.5rem;
    }
    
    .clear-history-btn {
      float: right;
      background: var(--primary);
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      margin:1rem ;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.9rem;
    }
    
    .history-card {
      background: var(--surface);
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      text-align: center;
      padding: 1rem;
    }
    
    .history-image {
      width: 100%;
      height: auto;
      border-radius: 4px;
    }
    
    .history-info {
      margin-top: 0.5rem;
    }
    
    .history-info .history-title {
      font-size: 1.1rem;
      margin: 0.5rem 0;
    }
    
    .history-info .history-playCount {
      font-size: 0.9rem;
      color: var(--text-secondary);
    }
    
    /* Swiper 内部样式调整 */
    .swiper {
      width: 100%;
      height: 250px;
    }