﻿/* ==========================================================================
   分类检索页专属 CSS - Droit Vision 卓特视觉 (高保真还原截图)
   ========================================================================== */

/* 页面整体大背景，符合大厂清爽色调 */
.category-page {
  background: #f8fafc;
  color: #1e293b;
  font-family: 'Noto Sans SC', sans-serif;
  margin: 0;
  padding: 0;
  padding-top: var(--header-height, 70px); /* 完美留出 fixed 吸顶页眉的占位高度，防止被遮挡 */
}

/* ==========================================================================
   搜索与分类筛选中心
   ========================================================================== */
.filter-center {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.filter-inner {
  width: 100%;
  box-sizing: border-box;
}

/* ---------- 1. 顶层微型联动搜索栏 ---------- */
.filter-search-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 50px;
  border-bottom: 1px solid #f1f5f9;
}

.search-logo-box {
  flex-shrink: 0;
}

.search-side-logo {
  height: 38px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-search-wrapper {
  flex: 1;
  margin: 0 40px;
  max-width: 720px;
}

/* 高拟真搜索框外壳 */
/* 顶部搜索框（仿首页样式，适配白底） */
.filter-center .search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 720px;
  height: 48px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(9, 109, 221, 0.06);
  position: relative;
  padding: 0 6px 0 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-center .search-box:focus-within {
  border-color: #096ddd;
  box-shadow: 0 2px 14px rgba(9, 109, 221, 0.14);
}

.filter-center .search-cate {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 16px;
  height: 100%;
  cursor: pointer;
  position: relative;
  user-select: none;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}
.filter-center .search-cate__arrow {
  opacity: 0.6;
  transition: transform 0.2s ease;
  pointer-events: none;
}
.filter-center .search-cate.is-open .search-cate__arrow {
  transform: rotate(180deg);
}
.filter-center .search-cate__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  padding: 8px;
  z-index: 200;
  list-style: none;
  min-width: 150px;
}
.filter-center .search-cate.is-open .search-cate__menu {
  display: block;
}
.filter-center .search-cate__menu li {
  padding: 8px 12px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.filter-center .search-cate__menu li:hover {
  color: #1d2129;
  background: #f5f7fa;
}
.filter-center .search-cate__menu li.is-active {
  color: #096ddd;
  font-weight: 600;
  background: #eff6ff;
}
.filter-center .search-divider {
  width: 1px;
  height: 20px;
  background: #d1d5db;
  flex-shrink: 0;
}
.filter-center .search-box > .search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1e293b;
  background: transparent;
  font-family: inherit;
  padding: 0 12px;
  height: 100%;
}
.filter-center .search-box > .search-input::placeholder {
  color: #94a3b8;
}
.filter-center .search-box > .search-btn-cam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #64748b;
  background: transparent;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.filter-center .search-box > .search-btn-cam:hover {
  color: #096ddd;
}
.filter-center .search-box > .filter-search-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 38px;
  color: #64748b;
  background: transparent;
  border-radius: 8px;
  flex-shrink: 0;
  margin-left: 2px;
  cursor: pointer;
}
.filter-center .search-box > .filter-search-go:hover,
.filter-center .search-box > .filter-search-go:focus {
  background: transparent;
  box-shadow: none;
  transform: none;
}

/* 搜索框最左侧下拉框触发器 */
.search-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.search-dropdown-trigger:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.filter-search-input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
}

.filter-search-input::placeholder {
  color: #94a3b8;
}

/* 搜索框内三个功能按钮 */
.search-clear-btn {
  background: transparent;
  border: 0;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 8px;
  display: none; /* 有输入时 JS 动态显示 */
  transition: color 0.15s;
}

.search-clear-btn:hover {
  color: #64748b;
}

.search-camera-btn {
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.search-camera-btn:hover {
  color: #2563eb;
}

.search-submit-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 0;
  color: #ffffff;
  width: 52px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.search-submit-btn:hover {
  opacity: 0.92;
}

/* 右侧登录状态区 */
.search-user-status {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.status-link {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
}

.status-link:hover {
  color: #2563eb;
}

.status-btn {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.vip-btn {
  background: #eff6ff;
  color: #096ddd;
  border: 1px solid rgba(9, 109, 221, 0.15);
}

.vip-btn:hover {
  background: #dbeafe;
  box-shadow: 0 2px 8px rgba(9, 109, 221, 0.1);
}

.login-btn {
  background: #2563eb;
  color: #ffffff;
}

.login-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* ---------- 2. 13 大全品类大Tab 导航栏 ---------- */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 50px 0 32px; /* 32px 容器左边距 + 18px 项内边距 = 精确 50px 物理文字左对齐线 */
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
  user-select: none;
}

.category-tab:hover {
  color: #096ddd;
}

.category-tab.is-active {
  color: #096ddd;
}

/* 激活时优雅的小底线滑动动效 */
.category-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: #096ddd;
  border-radius: 3px;
}

/* ---------- 3. 副过滤条件条 (包含下拉菜单) ---------- */
.sub-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 50px 14px 36px; /* 36px 容器左边距 + 14px 项内边距 = 精确 50px 物理文字左对齐线 */
  border-top: 1px solid #f1f5f9;
}

.sub-filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-filter-item {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.sub-filter-item:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.sub-filter-item.is-active {
  background: rgba(9, 109, 221, 0.08);
  color: #096ddd;
  font-weight: 600;
}

/* 带有微型推荐红标签的特殊项 */
.sub-filter-item--tag {
  position: relative;
}

.sub-filter-tag {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #096ddd;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 100px;
  line-height: 1;
  transform: scale(0.85);
  box-shadow: 0 2px 6px rgba(9, 109, 221, 0.25);
}

/* 右侧下拉筛选下拉菜单 */
.sub-filter-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dropdown-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: all 0.18s;
}

.dropdown-filter:hover {
  border-color: #cbd5e1;
  color: #1e293b;
}

.dropdown-icon {
  color: #94a3b8;
  transition: transform 0.2s;
}

.dropdown-filter:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* 下拉菜单浮层 */
.dropdown-options {
  position: absolute;
  top: 110%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  min-width: 110px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.dropdown-filter:hover .dropdown-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-opt {
  padding: 8px 16px;
  font-size: 13px;
  color: #475569;
  white-space: nowrap;
  text-align: left;
  transition: all 0.15s;
}

.dropdown-opt:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.dropdown-opt.is-active {
  color: #2563eb;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.04);
}

/* ---------- 3. 筛选按钮 + 抽屉式筛选（仅手机端启用，PC 端保持横向平铺） ---------- */
/* 默认（PC 端）：隐藏按钮与抽屉外壳，包裹层正常平铺显示横向筛选 */
.filter-bar { display: none; }
.filter-drawer-overlay { display: none; }
.filter-drawer {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  height: auto;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.filter-drawer__head,
.filter-drawer__foot { display: none; }
.filter-drawer__body {
  overflow: visible;
  padding: 0;
}

/* 按钮样式（手机端显示）——渐变胶囊，带阴影 */
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(9, 109, 221, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.filter-toggle-btn svg {
  stroke: #fff;
}
.filter-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(9, 109, 221, 0.38);
  filter: brightness(1.04);
}
.filter-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(9, 109, 221, 0.3);
}
.filter-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #fff;
  color: #096ddd;
  font-size: 11px;
  font-weight: 700;
}

/* 抽屉头部/底部/关闭/按钮（手机端用） */
.filter-drawer__head {
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.filter-drawer__title {
  font-size: 17px;
  font-weight: 700;
  color: #1d2129;
}
.filter-drawer__close {
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: #f5f7fa;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-drawer__close:hover {
  background: #e8edf3;
  color: #096ddd;
}
.filter-drawer__foot {
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.filter-drawer__reset,
.filter-drawer__apply {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-drawer__reset {
  border: 1px solid #d9dce0;
  background: #fff;
  color: #475569;
}
.filter-drawer__reset:hover {
  border-color: #096ddd;
  color: #096ddd;
}
.filter-drawer__apply {
  border: none;
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  color: #fff;
}
.filter-drawer__apply:hover {
  box-shadow: 0 8px 20px rgba(9, 109, 221, 0.3);
}

/* ===== 手机端：启用「筛选」按钮 + 右侧抽屉 ===== */
@media (max-width: 768px) {
  .filter-bar {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid #f1f5f9;
  }
  .filter-toggle-btn {
    width: auto;
  }
  .filter-toggle-count {
    display: none;
  }

  .filter-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1400;
  }
  .filter-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  .filter-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    max-width: 88vw;
    height: 100%;
    background: #fff;
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1410;
  }
  .filter-drawer.is-open {
    transform: translateX(0);
  }
  .filter-drawer__head { display: flex; }
  .filter-drawer__close { display: inline-flex; }
  .filter-drawer__foot { display: flex; }
  .filter-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
  }
  .filter-drawer .dimension-filters {
    border-top: none;
  }
  .filter-drawer .dim-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px;
    gap: 10px;
  }
  .filter-drawer .dim-label {
    width: auto;
    font-size: 14px;
    color: #1d2129;
  }
}

/* ---------- 3b. 横向筛选维度（保留基础样式，供抽屉内复用） ---------- */
.dimension-filters {
  border-top: 1px solid #f1f5f9;
}

.dim-row {
  display: flex;
  align-items: center;
  padding: 10px 50px; /* 与 .category-tabs / .results-stat-bar 的 50px 左右对齐线一致 */
  border-bottom: 1px solid #f1f5f9;
  gap: 0;
}

.dim-label {
  width: 56px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.dim-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dim-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  user-select: none;
}

.dim-tag:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.dim-tag.is-active {
  background: rgba(9, 109, 221, 0.08);
  color: #096ddd;
  border-color: rgba(9, 109, 221, 0.2);
  font-weight: 600;
}

.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- 4. 统计状态栏 ---------- */
.results-stat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  gap: 16px;
}

.stat-left {
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-right {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #096ddd;
  font-weight: 500;
  background: rgba(9, 109, 221, 0.06);
  border: 1px solid rgba(9, 109, 221, 0.18);
  border-radius: 6px;
  padding: 6px 14px;
  line-height: 1.5;
}

.stat-icon {
  flex-shrink: 0;
  color: #096ddd;
}

.stat-link {
  color: #096ddd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stat-link:hover {
  color: #0857b0;
}

.stat-count {
  color: #475569;
  font-weight: 700;
  margin: 0 2px;
}

.stat-keyword {
  color: #1e293b;
  font-weight: 700;
  margin: 0 2px;
}

/* ==========================================================================
   产品卡片展示区 (交错拼接堆叠自适应网格)
   ========================================================================== */
.products-container {
  padding: 30px 50px 60px;
}

.products-inner {
  width: 100%;
}

.products-grid {
  display: flex;
  gap: 18px;
  width: 100%;
}

.products-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0; /* 保证 flex 弹性计算不溢出 */
}

/* 卡片基础骨架：极致无界极简 (Borderless) 排版 */
.product-card {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0; /* 标题与缩略图保持无界极简排布 */
  transition: none; /* 去除无谓的卡片变形 */
}

.product-card:hover {
  /* 悬浮时卡片本身零位移、无黑色阴影遮挡，保持画廊通透视觉 */
  transform: none;
  box-shadow: none;
}

/* 自适应比例缩略图 */
.product-thumb {
  width: 100%;
  position: relative;
  background: #f1f5f9 center/cover no-repeat;
  border-radius: 12px; /* 增加更圆润的高端圆角 */
  overflow: hidden; /* 关键：确保内部图片放大时绝不溢出圆角框 */
  transition: background-size 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-thumb--vertical {
  aspect-ratio: 10 / 14; /* 黄金比例 A4 竖版 */
}

.product-thumb--horizontal {
  aspect-ratio: 16 / 9; /* 黄金比例 16:9 横版 */
}

.product-card:hover .product-thumb {
  background-size: 106% !important; /* 悬浮时，图片平滑无缝地在圆角框内优雅放大 6% */
}

/* 缩略图渐变遮罩 */
.product-thumb__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  display: none;
  z-index: 5;
}

.product-card:hover .product-thumb__overlay {
  opacity: 0;
}

/* 高清下载按钮：隐藏 */
.product-download-btn {
  display: none;
}

.product-card:hover .product-download-btn {
  display: none;
}

.product-download-btn:hover {
  display: none;
}

/* 产品卡片悬停：图片放大 */
.product-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: none;
}

.product-card:hover {
  transform: none;
  box-shadow: none;
}

.product-card:hover .product-thumb {
  outline: none;
}

.product-thumb {
  overflow: hidden;
  border-radius: 8px;
}

.product-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-thumb {
  overflow: hidden;
}

/* 产品缩略图悬停放大 */
.product-card .product-thumb {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.product-card .product-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.product-card:hover .product-thumb::before {
  transform: scale(1.08);
}

/* 卡片信息区：清空左右边距，使文字标题与图片左侧绝对物理对齐 */
.product-info {
  padding: 10px 0 0; /* 上边距 10px 与图片呼应，左右边距清零，使标题文字左侧与上方图片物理边缘绝对切齐 */
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  text-align: left;
}

.product-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.product-card:hover .product-title {
  color: #096ddd;
}

/* 卡片属性元标签行 */
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-format-tag {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-card:hover .product-format-tag {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.product-size {
  font-size: 11px;
  color: #94a3b8;
}

/* 加载更多按钮区 */
.products-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.products-more .btn-load-more {
  position: relative;
  appearance: none;
  border: 0;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 40px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, color 0.2s ease;
  overflow: hidden;
  isolation: isolate;
}

.products-more .btn-load-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #096ddd 0%, #096ddd 50%, #49c9e9 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.products-more .btn-load-more:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(9, 109, 221, 0.4), 0 10px 24px -8px rgba(9, 109, 221, 0.45);
}

.products-more .btn-load-more:hover::before {
  opacity: 1;
}

.products-more .btn-load-more:disabled {
  cursor: not-allowed;
  color: #9ca3af;
  transform: none;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.products-more .btn-load-more:disabled::before {
  opacity: 0;
}

/* ==========================================================================
   觅知AI助手右下角高拟真浮层 (截图同款)
   ========================================================================== */
.ai-assistant-card {
  position: fixed;
  bottom: 24px;
  right: 80px; /* 避开 sidebar 工具栏 */
  width: 290px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  overflow: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  animation: aiSlideUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes aiSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ai-assistant-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: color 0.15s;
}

.ai-assistant-close:hover {
  color: #ffffff;
}

/* AI 浮层头部渐变 */
.ai-assistant-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  padding: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-spark {
  color: #ffffff;
}

.ai-header-text {
  text-align: left;
}

.ai-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
  letter-spacing: 0.3px;
}

.ai-slogan {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.3;
}

/* AI 浮层卡片卡片项目列表 */
.ai-assistant-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-task-row:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.03);
  transform: translateX(2px);
}

.ai-task-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.ppt-icon {
  background: #eff6ff;
  color: #096ddd;
}

.img-icon {
  background: #eff6ff;
  color: #2563eb;
}

.ai-task-info {
  text-align: left;
}

.ai-task-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px;
}

.ai-task-desc {
  font-size: 10.5px;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   响应式断点适配
   ========================================================================== */
@media (max-width: 1200px) {
  .filter-search-row {
    padding: 20px 24px;
  }
  .category-tabs {
    padding: 10px 24px 0 6px; /* 6px 容器左边距 + 18px 项内边距 = 精确 24px 物理文字左对齐线 */
  }
  .sub-filter-row {
    padding: 14px 24px 14px 10px; /* 10px 容器左边距 + 14px 项内边距 = 精确 24px 物理文字左对齐线 */
  }
  .results-stat-bar {
    padding: 12px 24px;
  }
  .products-container {
    padding: 30px 24px 60px;
  }
}

@media (max-width: 1024px) {
  .products-col:last-child {
    display: none; /* 平板端隐藏至三列 */
  }
}

@media (max-width: 768px) {
  .filter-search-row {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .filter-search-wrapper {
    margin: 0;
    max-width: 100%;
  }
  .search-user-status {
    justify-content: center;
  }
  .products-col:nth-child(3) {
    display: none; /* 移动端隐藏至双列 */
  }

  /* 统计栏：块级堆叠、左对齐、文案顺排（放在基础定义之后以确保生效） */
  .results-stat-bar {
    display: block;
    padding: 12px 15px;
    background: #f8fafc;
  }
  .stat-left {
    display: block;
    white-space: normal;
    text-align: left;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
  }
  .stat-right {
    display: block;
    width: auto;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #64748b;
  }
  .stat-icon {
    vertical-align: -3px;
    margin-right: 4px;
    color: #096ddd;
  }
}

@media (max-width: 480px) {
  .products-col:nth-child(2) {
    display: none; /* 窄屏手机显示单列 */
  }
}

/* ==========================================================================
   4. 豪华高清素材预览与下载详情弹窗 (Modal) 样式
   ========================================================================== */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-modal__wrapper {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 960px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-modal.is-active .product-modal__wrapper {
  transform: scale(1) translateY(0);
}

.product-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 12;
}

.product-modal__close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.product-modal__container {
  display: flex;
  height: 560px;
}

/* 左侧大图预览 */
.product-modal__preview-box {
  flex: 1.1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  padding: 30px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  border-right: 1px solid #e2e8f0;
}

.product-modal__img-wrapper {
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.product-modal__img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-modal__img-wrapper:hover img {
  transform: scale(1.05);
}

.product-modal__zoom-tip {
  margin-top: 15px;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 右侧参数购买面板 */
.product-modal__info-box {
  flex: 0.9;
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.product-modal__badge {
  align-self: flex-start;
  padding: 4px 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 12px 0 24px;
  line-height: 1.3;
}

.product-modal__meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.product-modal__meta-item {
  display: flex;
  font-size: 14px;
  line-height: 1.5;
}

.meta-label {
  color: #64748b;
  width: 90px;
  flex-shrink: 0;
}

.meta-val {
  color: #1e293b;
  font-weight: 500;
}

.meta-val.text-green {
  color: #10b981;
}

/* 按钮交互 */
.product-modal__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-btn-download {
  flex: 1.5;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.modal-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.modal-btn-download:active {
  transform: translateY(0);
}

.modal-btn-star {
  flex: 0.7;
  height: 50px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}

.modal-btn-star:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.modal-btn-star.is-starred {
  background: #fffbeb;
  border-color: #bfdbfe;
  color: #d97706;
}

/* 拟真下载进度条 */
.modal-download-progress-wrapper {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}

.progress-status-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.progress-status {
  font-weight: 500;
}

.progress-percent {
  font-weight: 700;
  color: #2563eb;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  background-size: 200% 100%;
  border-radius: 100px;
  animation: progressGlow 1.5s linear infinite;
  transition: width 0.1s ease;
}

@keyframes progressGlow {
  0% { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}

.product-modal__notice {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: auto;
}

/* 弹窗响应式 */
@media (max-width: 992px) {
  .product-modal__wrapper {
    max-width: 720px;
  }
  .product-modal__container {
    height: 480px;
  }
  .product-modal__img-wrapper {
    height: 340px;
  }
  .product-modal__info-box {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .product-modal__wrapper {
    max-width: 480px;
    width: 92%;
  }
  .product-modal__container {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  .product-modal__preview-box {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
  }
  .product-modal__img-wrapper {
    height: 240px;
  }
  .product-modal__info-box {
    padding: 24px;
  }
  .product-modal__title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .product-modal__meta-list {
    margin-bottom: 20px;
  }
}


/* 图标/元素分类 - 小图标网格样式 */
.products-grid .icon-grid-layout {
  width: 100%;
  flex: 0 0 100%;
}

.icon-grid-layout .icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
}

.icon-grid-layout .icon-card:hover {
  transform: translateY(-4px);
}

.icon-grid-layout .icon-card__preview {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.icon-grid-layout .icon-card__preview svg {
  stroke: #4b5563;
  transition: stroke 0.2s;
}

.icon-grid-layout .icon-card:hover .icon-card__preview {
  border-color: #096ddd;
}

.icon-grid-layout .icon-card:hover .icon-card__preview svg {
  stroke: #096ddd;
}

.icon-grid-layout .icon-card__download {
  display: none;
}

.icon-grid-layout .icon-card__name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.icon-grid-layout .icon-card:hover .icon-card__name {
  color: #096ddd;
}

@media (max-width: 768px) {
  .icon-grid-layout {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .icon-grid-layout {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
}

/* 正方形卡片（艺术字等） */
.product-thumb--square {
  aspect-ratio: 4/3;
}

/* 视频分类网格 */
.products-grid .video-grid-layout {
  width: 100%;
  flex: 0 0 100%;
}

/* 音乐分类网格 */
.products-grid .music-grid-layout {
  width: 100%;
  flex: 0 0 100%;
}


/* ==========================================================================
   多维度筛选面板（样式统一在前述「3. 横向筛选维度」区块定义）
   ========================================================================== */

/* 下拉颜色圆点 */
.dropdown-color {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
