/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: sans-serif;
    background: #ffffff;
    min-height: 1024px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  /* ===================== 头部样式 - 核心恢复原底色 + 精准Logo尺寸 ===================== */
  header {
    background-color: #f2f4f9 !important; /* 强制恢复原有浅蓝底色，避免被覆盖 */
    padding: 1rem 2rem;
    width: 100%;
  }
  
  .header-container {
    max-width: 1560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 160px; 
  }
  
  /* 左上角Logo - 24px尺寸 + 保留原有文字样式 + 不影响底色 */
  .logo {
    font-size: 0.75rem; 
    color: #1a2b48; 
    font-family: 'Lexend', sans-serif; 
    font-weight: 300; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-left: -30px; 
    /* Logo图标：严格24px */
    background: url(./assets/logo.svg) left center no-repeat; /* 路径按实际调整 */
    background-size: 24px 24px !important; /* 强制24px，不被覆盖 */
    padding-left: 34px; /* 24px图标 + 10px间距，精准适配 */
    height: 40px; 
    line-height: 40px; 
    display: inline-block;
    /* 关键：确保不继承白色背景 */
    background-color: transparent !important;
  }
  
  /* 手机端logo适配 - 同步24px */
@media (max-width: 768px) {
    .header-container {
      padding: 0 20px; 
    }
    .logo {
      font-size: 0.6rem; 
      background-size: 24px 24px !important; /* 手机端也保持24px */
      padding-left: 34px; /* 24px + 10px间距 */
      margin-left: 0; 
      background-color: transparent !important;
    }
  }

  @media (min-width: 768px) {
    .nav-links { display: flex; }
  }
  
  .nav-links {
    display: none;
    gap: 2rem;
  }
  
  .nav-links a {
    color: #64748b;
    text-decoration: none;
  }
  
  .nav-links a:hover { color: #F5B32C; }

/* 标题上方的横幅容器 - 居中对齐 */
.title-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

/* 右侧浅灰底框（父容器）- 固定40px高，圆角拉满 */
.title-banner .banner-right-wrap {
  background-color: #ebeff7; /* 浅灰底色 */
  border-radius: 9999px; /* 圆角拉满 */
  display: inline-flex;
  align-items: center;
  height: 36px; /* 固定40px高，按要求调整 */
  padding-right: 20px; /* 右侧留空，适配宽度 */
  position: relative;
  /* 宽度自适应，随内容拉伸 */
  width: fit-content;
}

/* 左侧黑框 - 黄字居中，边距4px，大写logo字体 */
.title-banner .banner-left {
  background-color: #000000; /* 纯黑背景 */
  color: #F5B32C; /* 主题黄色 */
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px; /* 去掉上下padding，靠line-height居中 */
  line-height: 28px; /* 黑框高度=浅灰框高-8px(上下4px)，文字垂直居中 */
  border-radius: 9999px; /* 圆角拉满 */
  letter-spacing: 1px;
  font-family: 'Lexend', sans-serif; /* logo同款字体 */
  text-transform: uppercase; /* 大写 */
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  margin: auto 0;
  /* 固定黑框高度，确保居中 */
  height: 28px;
  box-sizing: border-box;
}

/* 右侧文字 - 加12px间距，适配宽度 */
.title-banner .banner-right {
  color: #64748b; /* 浅灰色文字 */
  font-size: 13px;
  font-weight: 400;
  font-family: 'Lexend', sans-serif;
  text-transform: uppercase;
  /* 关键：黑框宽度 + 4px边距 + 12px额外间距 = 总缩进 */
  padding-left: calc(80px + 4px + 16px); /* 80px黑框宽 + 4px左距 + 12px间距 */
  white-space: nowrap; /* 防止换行 */
  line-height: 40px; /* 浅灰框内文字垂直居中 */
}

/* 响应式适配（手机端） */
@media (max-width: 768px) {
  .title-banner .banner-right-wrap {
    height: 36px; /* 手机端略小，保持比例 */
    padding-right: 16px;
  }
  .title-banner .banner-left {
    font-size: 12px;
    padding: 0 10px;
    height: 28px;
    line-height: 28px;
    left: 4px;
    top: 4px;
    bottom: 4px;
  }
  .title-banner .banner-right {
    font-size: 12px;
    padding-left: calc(70px + 4px + 10px); /* 适配手机端间距 */
    line-height: 36px;
  }
}

/* 确保hero原有样式不受影响（保留你原有hero样式，仅补充） */
.hero {
  background-color: #f3f4f6;
  padding: 6rem 2rem 8rem;
  text-align: center;
  position: relative;
  min-height: 320px;
  box-sizing: border-box;
}
  
  /* 以下所有原有样式完全保留，仅上面修改了header底色和logo尺寸 */
  .hero {
    background-color: #f2f4f9;
    padding: 6rem 2rem 8rem; 
    text-align: center;
    position: relative;
    min-height: 320px; 
    box-sizing: border-box; 
  }
  
  .hero > * {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
  }
  
  .features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 0 !important;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #374151;
    font-size: 1rem;
  }
  
  .feature-item i {
    color: #F5B32C;
    font-size: 1.5rem;
  }
  
  .search-section {
    max-width: 1560px;
    margin: -2rem auto 4rem;
    padding: 0 160px;
    position: sticky;
    top: 24px;
    z-index: 90;
    width: 100%;
  }
  
  .search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
    height: 72px;
    position: relative;
    border: 1px solid rgba(245, 179, 44, 0.1);
    padding: 0;
  }
  
  .custom-select-wrapper {
    position: relative;
    width: 180px;
    height: 100%;
    padding: 0 16px;
    border-right: 1px solid rgba(229, 231, 235, 0.5);
    z-index: 100;
    background: transparent;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    margin-left: 0;
    padding-left: 16px;
  }
  
  .custom-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    cursor: pointer;
    color: #374151;
    font-size: 16px;
    background: transparent;
    border: none;
    outline: none;
  }
  
  .select-icon {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.2s ease;
  }
  
  .custom-select-wrapper.open .select-icon {
    transform: rotate(180deg);
  }
  
  .custom-select-list {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(245, 179, 44, 0.2);
    box-shadow: 0 8px 32px rgba(245, 179, 44, 0.08);
    z-index: 9999;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.2s ease, opacity 0.2s ease;
    padding: 4px 0;
    box-sizing: border-box;
  }
  
  .custom-select-wrapper.open .custom-select-list {
    height: auto;
    opacity: 1;
  }
  
  .select-option {
    padding: 0 16px;
    height: 72px;
    line-height: 72px;
    cursor: pointer;
    color: #374151;
    font-size: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    border-radius: 8px;
    margin: 4px 8px;
    background: transparent;
  }
  
  .custom-select-wrapper.open .select-option {
    opacity: 1;
    transform: translateY(0);
  }
  
  .select-option:hover {
    background-color: rgba(243, 244, 246, 0.6);
    color: #F5B32C;
  }
  
  .select-option.active {
    background-color: transparent;
    color: #F5B32C;
    font-weight: 500;
  }
  
  .search-input {
    flex: 1;
    padding: 0 20px 0 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    height: 100%;
    background: transparent;
    order: 1;
    autocomplete: off;
  }
  
  input[type="text"] {
    -webkit-appearance: none;
    appearance: none;
  }
  
  .search-input::placeholder {
    color: #bcc1cc;
    opacity: 1;
  }
  
  .search-icon-wrap {
    display: flex;
    align-items: center;
  }
  
  .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 24px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .search-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  .search-input:focus ~ .search-icon-wrap .search-icon svg path,
  .search-input:not(:placeholder-shown) ~ .search-icon-wrap .search-icon svg path {
    fill: #F5B32C !important;
  }
  
  .icon-grid-section {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 160px 4rem;
    width: 100%;
  }
  
  .category-title {
    font-size: 1rem;
    color: #111827;
    font-weight: 600;
    margin: 2rem 0 1.5rem 0;
    padding-left: 0.5rem;
    border-left: none;
  }
  
  .icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 2rem;
    justify-content: flex-start;
    width: 100%;
  }
  
  .icon-card {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 179, 44, 0.1);
    border-radius: 0.8rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    /* 👇 注释掉原有阴影，暂时去掉 */
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04); */
    margin: 10px;
    padding: 10px 0;
  }
  
  .icon-card:hover {
    border-color: rgba(245, 179, 44, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(245, 179, 44, 0.1);
    background: rgba(255, 255, 255, 0.95);
  }
  
  .icon-svg {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: none;
  }
  
  .icon-svg svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .icon-name {
    font-size: 14px;
    color: #afb7c7;
    transform: translateY(10px);
    transition: transform 0.4s ease-out, opacity 0.3s ease-out;
    position: relative;
    white-space: nowrap;
    opacity: 1;
  }
  
  .icon-card:hover .icon-name {
    transform: translateY(-5px);
    opacity: 0;
  }
  
  .icon-actions {
    position: absolute;
    bottom: -20px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
  }
  
  .icon-card:hover .icon-actions {
    bottom: 12px;
    opacity: 1;
  }
  
  .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0 2px;
  }
  
  .download-btn {
    background-color: #F5B32C;
    color: #000000;
  }
  
  .download-btn:hover {
    background-color: #e0a21a;
    color: #000000;
  }
  
  .copy-btn {
    background-color: #e5e7eb;
    color: #374151;
  }
  
  .copy-btn:hover {
    background-color: #d1d5db;
    color: #374151;
  }
  
  .icon-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
  }
  
  .icon-btn:hover svg {
    transform: scale(1.1);
  }
  
  .empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
  }

  /* 右上角GitHub按钮样式 - 完全保留 */
  .header-right {
    display: flex;
    align-items: center;
    padding: 0 16px;
  }
  
  .github-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    background-color: transparent;
  }
  
  .github-btn:hover {
    background-color: #e1e6f0;
    color: #000;
  }
  
  .github-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  
  @media (prefers-color-scheme: dark) {
    .github-btn {
      color: #fff;
    }
    .github-btn:hover {
      background-color: #444;
    }
  }
  
  .all-icons-btn, .collect-btn {
    display: none !important;
  }
  
  footer {
    background-color: #f9fafb;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;

  }



