/* Products页面特定样式 */
:root {
  --color-primary: #1e40af;
  --color-accent: #f59e0b;
  --color-neutral: #f8fafc;
}

/* 导航栏滚动效果样式 */
header#navbar {
  transition: all 0.5s ease !important;
}

header#navbar.navbar-transparent {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

header#navbar.navbar-transparent .logo-text {
  color: white !important;
}

header#navbar.navbar-transparent .logo-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
}

header#navbar.navbar-transparent .nav-link {
  color: white !important;
}

header#navbar.navbar-transparent .nav-link:hover {
  color: var(--accent) !important;
}

header#navbar.navbar-transparent .contact-info {
  color: rgba(255, 255, 255, 0.9) !important;
}

header#navbar.navbar-transparent .mobile-menu-line {
  background-color: var(--white) !important;
}

header#navbar.navbar-solid {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

header#navbar.navbar-solid .logo-text {
  color: var(--primary) !important;
}

header#navbar.navbar-solid .logo-subtitle {
  color: var(--gray-600) !important;
}

header#navbar.navbar-solid .nav-link {
  color: var(--gray-800) !important;
}

header#navbar.navbar-solid .nav-link:hover {
  color: var(--primary) !important;
}

header#navbar.navbar-solid .contact-info {
  color: var(--gray-600) !important;
}

header#navbar.navbar-solid .mobile-menu-line {
  background-color: var(--gray-800) !important;
}

/* 自定义样式 */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 产品页面特定样式 */
.products-section {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-item {
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.breadcrumb-item:hover {
  color: #1e40af;
}

.breadcrumb-item:last-child {
  color: #333;
  font-weight: 500;
}

.separator {
  margin: 0 8px;
  color: #999;
}

.products-container {
  display: flex;
  gap: 20px;
  height: 70vh;
}

.sidebar {
  width: 300px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: #1e40af;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.back-btn:hover {
  background: #1d4ed8;
}

.folder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.folder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: inherit;
}

.folder-item:hover {
  background: #e3f2fd;
  border-color: #1e40af;
  transform: translateX(5px);
}

.folder-item.active {
  background: #1e40af;
  color: white;
  border-color: #1e40af;
}

.folder-icon {
  font-size: 18px;
}

.preview-area {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 20px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.preview-header h3 {
  margin: 0;
  color: #333;
  font-size: 20px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 搜索框样式 */
.search-container {
  display: flex;
  align-items: center;
}

/* 搜索图标容器 */
.search-icon-container {
  position: relative;
}

/* 搜索图标按钮 */
.search-icon-button {
  width: 44px;
  height: 44px;
  background: rgba(30, 64, 175, 0.05);
  border: 2px solid rgba(30, 64, 175, 0.3);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* 导航栏透明状态下的搜索图标按钮样式 */
.navbar-transparent .search-icon-button {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

/* 导航栏实色状态下的搜索图标按钮样式 */
.navbar-solid .search-icon-button {
  background: rgba(30, 64, 175, 0.05);
  color: var(--color-primary);
  border-color: rgba(30, 64, 175, 0.3);
}

/* 搜索图标按钮悬停效果 */
.search-icon-button:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* 搜索图标按钮激活效果 */
.search-icon-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

/* 搜索图标按钮焦点样式 */
.search-icon-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 搜索图标按钮 */
.search-icon-button {
  width: 44px;
  height: 44px;
  background: rgba(30, 64, 175, 0.05);
  border: 2px solid rgba(30, 64, 175, 0.3);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* 导航栏透明状态下的搜索图标按钮样式 */
.navbar-transparent .search-icon-button {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

/* 导航栏实色状态下的搜索图标按钮样式 */
.navbar-solid .search-icon-button {
  background: rgba(30, 64, 175, 0.05);
  color: var(--color-primary);
  border-color: rgba(30, 64, 175, 0.3);
}

/* 搜索图标按钮悬停效果 */
.search-icon-button:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* 搜索图标按钮激活效果 */
.search-icon-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

/* 搜索图标按钮焦点样式 */
.search-icon-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 搜索图标按钮焦点效果 */
.search-icon-button:focus {
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* 搜索图标按钮内部元素 */
.search-icon-button i {
  transition: transform 0.3s ease;
}

/* 悬停时图标旋转效果 */
.search-icon-button:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* 搜索图标按钮的光晕效果 */
.search-icon-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

/* 悬停时光晕效果 */
.search-icon-button:hover::before {
  width: 100px;
  height: 100px;
}

/* 响应式设计 - 移动设备上的搜索图标按钮 */
@media (max-width: 768px) {
  .search-icon-button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* 搜索弹窗样式 */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.search-modal.show {
  display: flex;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 搜索弹窗内容 */
.search-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 0;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow: hidden;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* 搜索弹窗关闭按钮 */
.search-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 20px;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-modal-close:hover {
  background-color: var(--color-accent);
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* 搜索弹窗头部 */
.search-modal-header {
  position: relative;
  padding: 25px 30px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
}

.search-modal-header h3 {
  margin: 0;
  color: white;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

/* 搜索弹窗主体 */
.search-modal-body {
  padding: 30px;
}

/* 搜索输入容器 */
.search-input-container {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: 30px;
  padding: 0 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input-container:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* 搜索输入框 */
.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 0;
  font-size: 16px;
  color: var(--color-text-primary);
  background: transparent;
  font-family: inherit;
}

.search-modal-input::placeholder {
  color: var(--color-text-secondary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* 搜索按钮 */
.search-modal-button {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-left: 8px;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  position: relative;
  overflow: hidden;
}

.search-modal-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

.search-modal-button:active {
  transform: scale(0.95);
}

.search-modal-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.search-modal-button:hover::before {
  width: 100px;
  height: 100px;
}

/* 搜索结果容器 */
.search-results {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: white;
  display: none;
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.search-results.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* 搜索结果项 */
.search-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--color-bg-light);
  transform: translateX(5px);
}

/* 搜索结果项悬停效果 */
.search-result-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--color-primary);
  transition: height 0.3s ease;
}

.search-result-item:hover::after {
  height: 100%;
}

.search-result-item strong {
  color: var(--color-primary);
  margin-right: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.search-result-item .brand-info {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.search-result-item .product-type {
  color: var(--color-accent);
  font-size: 13px;
  background-color: rgba(245, 158, 11, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-result-item:hover .product-type {
  background-color: var(--color-accent);
  color: white;
}

/* 无结果提示 */
.no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 500;
}

.no-results::before {
  content: '🔍';
  display: block;
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .search-icon-button {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* 自定义滚动条 */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: var(--color-bg-light);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1e40af;
}

.search-results-header h4 {
  margin: 0;
  color: #1e40af;
  font-size: 18px;
  font-weight: 600;
}

.search-results-count {
  color: #666;
  font-size: 14px;
}

.search-results-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.search-results-content.list-mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-results-content.list-mode .search-result-item {
  display: flex;
  align-items: center;
  padding: 10px;
}

.search-results-content.list-mode .search-result-item img {
  width: 80px;
  height: 60px;
  margin-right: 15px;
  flex-shrink: 0;
}

.search-results-content.list-mode .search-result-info {
  padding: 0;
  flex: 1;
}

.search-result-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #1e40af;
}

.search-result-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.search-result-info {
  padding: 12px;
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.search-result-category {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.search-result-oe {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.search-oe-tag {
  background: #e3f2fd;
  color: #1e40af;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

.search-highlight {
  background: #fef3c7;
  color: #d97706;
  font-weight: bold;
}

.view-toggle {
  display: flex;
  gap: 5px;
}

.view-toggle button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-toggle button:first-child {
  border-radius: 4px 0 0 4px;
}

.view-toggle button:last-child {
  border-radius: 0 4px 4px 0;
}

.view-toggle button.active {
  background: #1e40af;
  color: white;
  border-color: #1e40af;
}

.content-container.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.content-container.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.folder-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.folder-card:hover {
  background: #e3f2fd;
  border-color: #1e40af;
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.folder-icon-large {
  font-size: 48px;
  margin-bottom: 10px;
  color: #1e40af;
}

.folder-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-align: center;
  line-height: 1.4;
}

.content-container.list .folder-card {
  flex-direction: row;
  min-height: auto;
  padding: 15px;
  text-align: left;
}

.content-container.list .folder-icon-large {
  font-size: 24px;
  margin-bottom: 0;
  margin-right: 15px;
}

.image-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.content-container.grid .image-item {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-container.grid .image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.content-container.list .image-item {
  display: flex;
  align-items: center;
  padding: 10px;
}

.content-container.grid .image-item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.content-container.list .image-item img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  margin-right: 15px;
}

.image-name {
  padding: 10px;
  font-size: 14px;
  color: #666;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.content-container.list .image-name {
  border: none;
  padding: 0;
  text-align: left;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #999;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  animation: slideIn 0.3s ease;
  display: flex;
  justify-content: space-evenly;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  line-height: 15px;
  z-index: 1001;
}

.modal-content img {
  max-width: 25%;
  max-height: 80vh;
  display: block;
  padding: 30px;
  object-fit: contain;
}

.modal-title {
  padding: 15px;
  text-align: center;
  background: #f8f9fa;
  color: #333;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* OE数据显示区域样式 */
.oe-section {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.oe-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1e40af;
}

.oe-header h4 {
  margin: 0;
  color: #1e40af;
  font-size: 18px;
  font-weight: 600;
}

.oe-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.oe-item {
  background: white;
  padding: 0 4px;
  border-radius: 6px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
  width: fit-content;
}

.oe-item:hover {
  background: #e3f2fd;
  border-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
}

.oe-code {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .products-container {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .content-container.grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .oe-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }

  .oe-item {
    padding: 10px 12px;
  }

  .oe-code {
    font-size: 13px;
  }

  .header-controls {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .search-container {
    min-width: auto;
    width: 100%;
  }

  .search-results-content {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .search-result-item img {
    height: 100px;
  }

  .search-result-info {
    padding: 8px;
  }

  .search-result-name {
    font-size: 13px;
  }

  .search-result-category {
    font-size: 11px;
  }
}

/* 分类和子文件夹样式 */
.category-section {
  display: contents;
}

.subfolder-section {
  display: contents;
}

.main-categories {
  display: contents;
}