html, body {
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            display: flex;
            flex-direction: column;
        }
        
        .content-wrap {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        html {
            min-height: 100vh;
        }
/* 筛选容器样式 */
.filter-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.filter-container:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* 筛选标题样式 */
.filter-label {
    display: block;
    font-size: 0.875rem; /* text-sm 的等效 CSS */
    font-weight: 500; /* font-medium 的等效 CSS */
    color: #334155; /* 保留明确的颜色值 */
    margin-bottom: 0.375rem; /* 替代 mb-1.5，相当于 1.5 * 0.25rem */
    transition: color 0.2s ease;
    line-height: 1.2; /* 增加行高提升可读性 */
}

/* 可选：添加悬停效果增强交互体验 */
.filter-label:hover {
    color: #1e293b; /* 深色变体 */
}

/* 优化筛选下拉框 - 只过渡必要的属性 */
.filter-select {
  /* 只过渡边框颜色和阴影,避免transition-all */
  transition-property: border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

  /* 使用will-change提示浏览器优化 */
  will-change: border-color, box-shadow;
}

/* 优化focus状态 */
.filter-select:focus {
  outline: none;
  border-color: rgb(113 113 122); /* zinc-500 */
  box-shadow: 0 0 0 2px rgba(113, 113, 122, 0.2);
}

/* 移除不必要的过渡效果 */
.filter-select option {
  /* 确保选项立即显示 */
  transition: none;
}

/* 优化排序按钮 */
.sort-btn {
  transition-property: background-color, color;
  transition-duration: 150ms;
}

/* 优化重置按钮 */
.reset-filters {
  transition-property: background-color, transform;
  transition-duration: 150ms;
}

/* 移除页面加载时的过渡效果 */
.preload * {
  transition: none !important;
}




@media (min-width: 640px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .filter-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 重置按钮样式 */
.reset-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.reset-filters:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.reset-filters:active {
    background-color: #e2e8f0;
}

/* 筛选交互反馈 */
.filter-select.changing {
    border-color: #fbbf24;
}

.filter-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
