/* ========================================
   products.css - 产品分类/搜索页样式
   对应页面：product_class、product_search
   ======================================== */

/* ===== 页面顶部横幅（page-hero） ===== */
.page-hero {
  position:relative; padding:180px 0 120px;
  background:linear-gradient(135deg,#151E2D 0%,#1e3a5f 50%,#1a4a7a 100%);
  color:#fff; overflow:hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background:url('/images/hero-banner.svg') center/cover no-repeat;
  opacity:.08; z-index:0; pointer-events:none;
}
.page-hero::after {
  content:''; position:absolute; top:-40%; right:-10%;
  width:600px; height:600px;
  background:radial-gradient(circle,rgba(37,99,235,.12) 0%,transparent 70%);
  border-radius:50%; z-index:0; pointer-events:none;
}
.page-hero .hero-inner { position:relative; z-index:2; text-align:center; }
.page-hero.hero-has-bg::after {
  content:''; position:absolute; inset:0;
  width:auto; height:auto; top:0; right:0;
  border-radius:0;
  background:linear-gradient(135deg,rgba(15,23,42,.85) 0%,rgba(15,23,42,.7) 50%,rgba(15,23,42,.5) 100%);
  z-index:1;
}
.page-hero .hero-breadcrumb { font-size:13px; color:rgba(255,255,255,.55); margin-bottom:12px; }
.page-hero .hero-breadcrumb a { color:rgba(255,255,255,.7); }
.page-hero .hero-breadcrumb a:hover { color:#fff; }
.page-hero h1 {
  font-size:clamp(1.8rem,3vw,2.6rem); font-weight:800;
  margin-bottom:12px; line-height:1.2;
}
.page-hero p {
  font-size:clamp(.95rem,1.3vw,1.05rem);
  color:rgba(255,255,255,.7); max-width:800px; margin:0 auto;
  line-height:1.7;
}

/* ===== 通用 Section ===== */
.section { padding:80px 0; position:relative; }
.section-dark { background:#151E2D; color:#fff; }

/* ===== 列表空状态 ===== */
.list-empty {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:80px 20px; color:var(--text-light);
}
.list-empty .empty-icon { margin-bottom:16px; opacity:.5; }
.list-empty p { font-size:1rem; margin:0; }

/* ===== 淡入动画 ===== */
.fade-in { opacity:0; transform:translateY(20px); transition:all .6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ===== Hero 响应式 ===== */
@media(max-width:768px) {
  .page-hero { padding:110px 0 50px; }
}

/* =============================================
   模块1：Hub 分类卡片（2列）
   对应 product_hub.html 的产品中心首页
   两个大卡片（产品系列、产品应用）2列并排
   ============================================= */
.hub-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:28px;
  max-width:1400px; margin:0 auto; padding:0 20px;
}
.hub-card {
  position:relative;
  background:var(--bg-white); border:1px solid var(--border);
  border-radius:var(--radius-xl); overflow:hidden;
  transition:all var(--transition);
  text-decoration:none; display:block; color:inherit;
}
.hub-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-xl); border-color:var(--primary); }
.hub-card-cover {
  width:100%; height:220px; overflow:hidden; background:var(--bg-alt);
}
.hub-card-cover img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s ease;
}
.hub-card:hover .hub-card-cover img { transform:scale(1.06); }
.hub-card-body { padding:28px; }
.hub-card-body h3 {
  font-size:1.15rem; font-weight:700; color:var(--text);
  margin-bottom:8px;
}
.hub-card-body .hub-desc {
  font-size:.9rem; color:var(--text-muted); line-height:1.7;
  margin-bottom:16px;
}
.hub-card-body .hub-count {
  font-size:.82rem; color:var(--text-light);
  display:inline-flex; align-items:center; gap:6px;
}
.hub-card-arrow {
  position:absolute; top:28px; right:28px;
  width:40px; height:40px;
  border-radius:50%; background:var(--primary);
  color:#fff; display:flex; align-items:center; justify-content:center;
  transition:all var(--transition); opacity:0; transform:translateX(-10px);
}
.hub-card:hover .hub-card-arrow { opacity:1; transform:translateX(0); }

/* =============================================
   模块2：产品卡片（列表页通用）
   2列产品卡片，上图下文
   ============================================= */
.product-card {
  background:var(--bg-white); border:1px solid var(--border);
  border-radius:var(--radius-xl); overflow:hidden;
  transition:all var(--transition);
}
.product-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-xl); }
.product-card-img {
  width:100%; height:220px; overflow:hidden;
  background:var(--bg-alt);
}
.product-card-img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s ease;
}
.product-card:hover .product-card-img img { transform:scale(1.05); }
.product-card-body { padding:28px; }
.product-card-body h3 {
  font-size:1.15rem; font-weight:700; color:var(--text);
  margin-bottom:10px;
}
.product-card-body p {
  font-size:.9rem; color:var(--text-muted); line-height:1.7;
  margin-bottom:20px;
}
.product-card-body .btn-sm {
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 22px; font-size:.88rem; font-weight:600;
  color:#fff; background:var(--primary);
  border-radius:6px; transition:all var(--transition);
}
.product-card-body .btn-sm:hover { color:#fff; background:var(--primary-dark); transform:translateY(-1px); }
.product-footnote {
  text-align:center; margin-top:32px;
  font-size:.85rem; color:var(--text-light);
}

/* =============================================
   模块3：Hub 特色大卡片（1列全宽）
   product_hub.html 下方的大卡片，图文左右布局
   ============================================= */
.hub-featured {
  max-width:1200px; margin:60px auto; padding:0 20px;
}
.hub-featured-card {
  display:grid; grid-template-columns:1fr 1fr;
  background:var(--bg-white); border:1px solid var(--border);
  border-radius:var(--radius-xl); overflow:hidden;
  transition:all var(--transition); text-decoration:none; color:inherit;
}
.hub-featured-card:hover { box-shadow:var(--shadow-xl); transform:translateY(-4px); }
.hub-featured-card .featured-img { height:100%; min-height:340px; background:var(--bg-alt); }
.hub-featured-card .featured-img img { width:100%; height:100%; object-fit:cover; }
.hub-featured-card .featured-body { padding:40px; display:flex; flex-direction:column; justify-content:center; }
.hub-featured-card .featured-tag {
  display:inline-block; align-self:flex-start;
  padding:4px 12px; font-size:.75rem; font-weight:600;
  background:var(--primary-light); color:var(--primary);
  border-radius:50px; margin-bottom:12px;
}
.hub-featured-card .featured-body h3 { font-size:1.4rem; font-weight:700; margin-bottom:10px; }
.hub-featured-card .featured-body p { font-size:.92rem; color:var(--text-muted); line-height:1.7; margin-bottom:16px; }
.hub-featured-card .featured-meta { font-size:.82rem; color:var(--text-light); display:flex; gap:16px; }



/* =============================================
   模块5：面包屑导航
   所有产品相关页面通用
   ============================================= */
.breadcrumb-bar {
  background:var(--bg-alt); border-bottom:1px solid var(--border);
  padding:12px 0;
}
.breadcrumb-inner {
  display:flex; align-items:center; flex-wrap:wrap; gap:4px;
  font-size:.85rem; color:var(--text-muted);
}
.breadcrumb-inner a {
  display:inline-flex; align-items:center; gap:4px;
  color:var(--text-muted); text-decoration:none;
  padding:2px 8px; border-radius:6px; transition:all .2s;
}
.breadcrumb-inner a:hover { color:var(--primary); background:var(--bg-white); }
.breadcrumb-sep { color:var(--text-light); display:inline-flex; align-items:center; }
.breadcrumb-current {
  color:var(--text); font-weight:600;
  padding:2px 8px; background:var(--bg-white); border-radius:6px;
}

/* 响应式 - Hub 页面 */
@media(max-width:1024px) {
  .hub-grid { grid-template-columns:1fr; }
  .hub-featured-card { grid-template-columns:1fr; }
  .hub-featured-card .featured-img { min-height:240px; }
}
@media(max-width:768px) {
  .hub-card-cover { height:180px; }
  .hub-card-body { padding:20px; }
  .hub-featured-card .featured-body { padding:24px; }
}
@media(max-width:480px) {
  .hub-card-cover { height:160px; }
}





/* =============================================
   模块7：项目详情页样式已迁移至 productdetail.css
   ============================================= */

/* =============================================
   模块8：产品分类页 - 左树右列布局
   对应 product_class.html
   左侧树形分类导航 + 右侧产品列表网格
   ============================================= */
.product-class-section {
  padding: 40px 0 60px;
  background: var(--bg-white);
}
.product-class-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* 左侧边栏 */
.class-sidebar {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.tree-nav {
  padding: 8px 0;
}
.tree-list, .tree-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tree-node {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.tree-trigger {
  width: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: transform .2s, color .2s;
  user-select: none;
}
.tree-trigger:hover { color: var(--primary); }
.tree-trigger svg { transition: transform .2s; }
.tree-trigger.open svg { transform: rotate(90deg); }
.tree-trigger-empty { cursor: default; opacity: .3; }
.tree-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px 9px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  min-width: 0;
}
.tree-link:hover { color: var(--primary); background: rgba(37,99,235,.04); }
.tree-node.active > .tree-link,
.tree-link.active { color: var(--primary); font-weight: 600; }
.tree-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-badge {
  flex-shrink: 0;
  font-size: .7rem;
  padding: 1px 7px;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  margin-left: auto;
}
.tree-sublist { width: 100%; display: none; }
.tree-sublist.is-open { display: block; }
.tree-sublist .tree-link { padding-left: 16px; font-size: 1rem; }
.level-2 .tree-link { padding-left: 28px; font-size: 1rem; }
.level-3 .tree-link { padding-left: 44px; font-size: .9375rem; }
.level-4 .tree-link { padding-left: 60px; }
.level-2 .tree-trigger { width: 28px; }
.level-3 .tree-trigger { width: 28px; }
.level-4 .tree-trigger { width: 28px; }

/* 侧边栏搜索框 */
.sidebar-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-search form {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s;
}
.sidebar-search form:focus-within {
  border-color: var(--primary);
}
.sidebar-search .search-icon {
  flex-shrink: 0;
  margin-left: 10px;
  color: var(--text-muted);
}
.sidebar-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 8px;
  font-size: .85rem;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.sidebar-search input::placeholder { color: var(--text-muted); }
.sidebar-search button {
  flex-shrink: 0;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .2s;
}
.sidebar-search button:hover { background: var(--primary-dark); }

/* 侧边栏相关文章列表 */
.sidebar-articles {
  padding: 16px 16px 12px;
  border-top: 1px solid var(--border);
}
.articles-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.articles-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.articles-list li {
  position: relative;
  padding: 6px 0 6px 14px;
  line-height: 1.5;
}
.articles-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .6;
}
.articles-list li a {
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.articles-list li a:hover { color: var(--primary); }

/* 右侧主区域 */
.class-main {
  min-width: 0;
}
.class-result-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.result-count {
  font-size: .88rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.result-count strong { color: var(--primary); font-weight: 700; }
.result-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

/* 产品网格卡片 */
.class-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.class-product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.class-product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.class-product-img {
  width: 100%;
  flex-shrink: 0;
  background: var(--bg-alt);
  overflow: hidden;
  text-decoration: none;
  position: relative;
}
.class-product-img::before {
  content: '';
  display: block;
  padding-bottom: 100%;
}
.class-product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.class-product-card:hover .class-product-img img { transform: scale(1.06); }
.img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.class-product-info {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.class-product-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.4;
}
.class-product-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.class-product-title a:hover { color: var(--primary); }
.class-product-subtitle {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.class-product-summary {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.class-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  /* 允许网格项收缩到内容宽度以下 */
  min-width: 0;
}
.class-product-price {
  font-size: 1rem;
  font-weight: 700;
  color: #e53e3e;
  margin-bottom: 8px;
}

/* 全局按钮基础样式（搜索页等共用） */
.btn-detail,
.btn-consult {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
}
.btn-detail {
  color: #fff;
  background: var(--primary);
  border: none;
}
.btn-detail:hover {
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.btn-consult {
  color: #fff;
  background: #07c160;
  border: none;
}
.btn-consult:hover {
  background: #06ad56;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(7,193,96,.35);
}

/* 分类页按钮 - 网格内自适应，避免缩放溢出 */
.class-product-actions .btn-detail,
.class-product-actions .btn-consult {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 8px 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.class-product-actions .btn-detail svg,
.class-product-actions .btn-consult svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

/* 分页 */
.class-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pgn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
  user-select: none;
}
.pgn-btn:hover { border-color: var(--primary); color: var(--primary); }
.pgn-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pgn-btn.disabled { opacity: .4; cursor: default; pointer-events: none; }
.pgn-ellipsis { padding: 0 4px; color: var(--text-light); font-size: .9rem; }
.pgn-info { margin-left: 8px; font-size: .82rem; color: var(--text-muted); }

/* =============================================
   模块9：二级分类导航图标网格
   对应 product_class_new.html 的产品分类导航
   圆图标 + 名称，自动填充列数
   ============================================= */
.class-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 0;
}
.class-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all .25s;
}
.class-nav-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.class-nav-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.class-nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.class-nav-char {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.class-nav-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: color .2s;
}
.class-nav-card:hover .class-nav-label { color: var(--primary); }

/* =============================================
   模块10：产品介绍 Tab 切换
   对应 product_class_new.html
   6个横向 Tab 按钮 + 下方切换正文
   使用独立类名 prod-intro-*，不与任何全局CSS冲突
   ============================================= */
.prod-intro-modules { margin-top:0; margin-bottom:50px; }

/* Tab 导航栏 */
.prod-intro-tabs {
  display:flex; flex-wrap:wrap; gap:8px;
  margin-bottom:12px;
}
.prod-intro-tab {
  display:inline-flex; align-items:center; gap:5px;
  padding:10px 20px; border-radius:8px;
  font-size:1rem; font-weight:600;
  color:var(--text-muted); background:var(--bg-gray);
  border:1px solid transparent;
  cursor:pointer; user-select:none;
  transition:all .25s ease;
}
.prod-intro-tab svg {
  width:16px; height:16px; flex-shrink:0;
  display:inline-block; vertical-align:middle;
}
.prod-intro-tab:hover {
  color:var(--text); border-color:var(--border);
}
.prod-intro-tab.active {
  color:#fff; background:var(--primary); border-color:var(--primary);
}
.prod-intro-tab.active svg { stroke:#fff; }

/* Tab 正文内容 */
.prod-intro-content {
  font-size:.875rem; color:#000; line-height:1.8;
  animation:prodTabFade .3s ease;
}
@keyframes prodTabFade {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}
.prod-intro-body { display:none; }

/* =============================================
   模块11：新模板（product_class_new.html）
   面包屑后间距缩紧 + 4列产品网格
   ============================================= */

/* 面包屑后 section 间距紧 */
.breadcrumb-bar + .class-new-section { padding-top: 20px; }

/* 上图下文产品网格 4列 */
.prod-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prod-card-v {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.prod-card-v:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.prod-card-v-img {
  display: block;
  width: 100%;
  background: var(--bg-alt);
  overflow: hidden;
  text-decoration: none;
  position: relative;
}
.prod-card-v-img::before {
  content: '';
  display: block;
  padding-bottom: 100%;
}
.prod-card-v-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.prod-card-v:hover .prod-card-v-img img { transform: scale(1.06); }
.prod-card-v-body {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prod-card-v-title {
  font-size: .92rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.4;
}
.prod-card-v-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.prod-card-v-title a:hover { color: var(--primary); }
.prod-card-v-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}
.prod-card-v-act {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.prod-card-v-act .btn-consult,
.prod-card-v-act .btn-detail {
  font-size: .8rem;
  padding: 8px 6px;
  justify-content: center;
}

/* 响应式 - 4列产品网格 */
@media(max-width:992px) {
  .prod-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:480px) {
  .prod-grid-4col { grid-template-columns: repeat(1, 1fr); }
}

/* 响应式 - 分类页 */
@media(max-width:1200px) {
  .class-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:992px) {
  .product-class-layout { grid-template-columns: 1fr; }
  .class-sidebar { position: static; }
  .class-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:600px) {
  .class-product-grid { grid-template-columns: 1fr; }
}
@media(max-width:480px) {
  .class-product-actions { grid-template-columns: 1fr; }
}
@media(max-width:768px) {
  .class-pagination { flex-wrap: wrap; gap: 4px; }
  .pgn-btn { min-width: 32px; height: 32px; font-size: .82rem; padding: 0 8px; }
}

/* =============================================
   模块12：子分类卡片网格
   product_class.html 的子分类图标导航
   4列圆图 + 名称
   ============================================= */
.sub-class-header { margin-bottom: 24px; }
.sub-class-title { font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 0; }
.sub-class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.sub-class-card {
  display: block;
  text-decoration: none;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  text-align: center;
}
.sub-class-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.sub-class-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sub-class-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.sub-class-card:hover .sub-class-img img {
  transform: scale(1.08);
}
.sub-class-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.sub-class-name {
  padding: 12px 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

@media(max-width:992px) {
  .sub-class-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:600px) {
  .sub-class-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   模块13：产品搜索页（product_search.html）
   蓝色搜索横幅 + 搜索结果列表
   ============================================= */
.search-hero {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  padding: 36px 0;
}
.search-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
}
.search-hero-inner svg { flex-shrink: 0; opacity: .7; }
.search-hero-form {
  display: flex;
  flex: 1;
  max-width: 500px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.search-hero-form input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: .95rem;
  outline: none;
  color: #333;
}
.search-hero-form button {
  border: none;
  background: #07c160;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  transition: background .2s;
}
.search-hero-form button:hover { background: #06ad56; }
.search-result-section {
  padding: 40px 0 60px;
  background: var(--bg-white);
}
.search-result-header { margin-bottom: 28px; }
.result-count { font-size: 1rem; color: var(--text-muted); }
.result-count strong { color: var(--text); font-weight: 700; }
.search-tip { margin-top: 12px; font-size: .95rem; color: var(--text-light); }
.search-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.search-product-card {
  display: flex;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.search-product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.search-product-img {
  width: 160px;
  flex-shrink: 0;
  background: var(--bg-alt);
  overflow: hidden;
  text-decoration: none;
  position: relative;
}
.search-product-img::before {
  content: '';
  display: block;
  padding-bottom: 100%;
}
.search-product-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.search-product-card:hover .search-product-img img { transform: scale(1.06); }
.search-product-info {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-product-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.4;
}
.search-product-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.search-product-title a:hover { color: var(--primary); }
.search-product-subtitle {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.search-product-summary {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
@media(max-width:768px) {
  .search-product-grid { grid-template-columns: 1fr; }
  .search-product-img { width: 120px; }
  .search-hero-form { max-width: 100%; }
}
@media(max-width:480px) {
  .search-product-card { flex-direction: column; }
  .search-product-img { width: 100%; }
  .search-product-actions { flex-direction: column; align-items: stretch; }
  .search-product-actions .btn-detail,
  .search-product-actions .btn-consult { justify-content: center; }
}

/* =============================================
   pro-* 产品系统样式（从 inner.css 迁移）
   对应 pro 系列页面组件
   ============================================= */

/* Hero */
.pro-hero { position: relative; padding: 160px 0 50px; background: linear-gradient(135deg, #0f1724 0%, #1e3a5f 50%, #2563eb 100%); overflow: hidden; }
.pro-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,.3) 0%, transparent 50%), radial-gradient(ellipse at 70% 80%, rgba(37,99,235,.2) 0%, transparent 50%); }
.pro-hero-image { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; }
.pro-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 1; }
.pro-hero-pattern { position: absolute; inset: 0; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); z-index: 2; }
.pro-hero-inner { position: relative; z-index: 3; text-align: center; color: #fff; }
.pro-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 30px; font-size: .9rem; flex-wrap: wrap; }
.pro-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .3s; }
.pro-breadcrumb a:hover { color: #fff; }
.pro-breadcrumb-sep { color: rgba(255,255,255,.4); display: flex; }
.pro-breadcrumb-sep svg { width: 16px; height: 16px; }
.pro-breadcrumb-current { color: #fff; font-weight: 600; }
.pro-hero-title { font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 800; margin: 0 0 16px; color: #fff; }
.pro-hero-subtitle { font-size: clamp(0.9rem, 2vw, 1.25rem); color: rgba(255,255,255,.9); margin: 0 0 12px; max-width: none; }
.pro-hero-desc { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* 分类导航 */
.pro-class-nav { padding: 40px 0; background: #fff; border-bottom: 1px solid #e2e8f0; }
.pro-class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pro-class-group { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; overflow: hidden; transition: all .3s; }
.pro-class-group:hover, .pro-class-group.is-active { border-color: #2563eb; box-shadow: 0 10px 40px rgba(37,99,235,.15); }
.pro-class-group.is-active { background: linear-gradient(135deg, #eff6ff 0%, #fff 100%); }
.pro-class-l3 { display: inline-block; padding: 6px 14px; background: #f1f5f9; border-radius: 20px; font-size: .85rem; color: #64748b; text-decoration: none; transition: all .3s; }
.pro-class-l3:hover, .pro-class-l3.is-active { background: #2563eb; color: #fff; }

/* 子分类展示 */
.pro-subclass { position: relative; padding: 100px 0; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); overflow: hidden; }
.pro-subclass-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%, rgba(37,99,235,.05) 0%, transparent 50%); }
.pro-section-header { text-align: center; margin-bottom: 60px; }
.pro-section-tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px; color: #2563eb; background: rgba(37,99,235,.1); padding: 10px 24px; border-radius: 50px; margin-bottom: 20px; }
.pro-section-header h2 { font-size: 2.2rem; font-weight: 800; color: #1e293b; margin: 0 0 16px; }
.pro-section-header p { font-size: 1.1rem; color: #64748b; margin: 0; }
.pro-subclass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; position: relative; z-index: 1; }
.pro-subclass-card { display: flex; align-items: center; gap: 20px; padding: 28px; background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; text-decoration: none; transition: all .4s; animation: fadeInUp .5s ease-out both; animation-delay: var(--delay, 0s); }
.pro-subclass-card:hover { transform: translateY(-6px); border-color: #2563eb; box-shadow: 0 20px 50px rgba(37,99,235,.15); }
.pro-subclass-num { font-size: 2.5rem; font-weight: 800; color: rgba(37,99,235,.2); line-height: 1; }
.pro-subclass-content { flex: 1; }
.pro-subclass-content h3 { font-size: 1.2rem; font-weight: 700; color: #1e293b; margin: 0 0 8px; }
.pro-subclass-content p { font-size: .9rem; color: #64748b; margin: 0; line-height: 1.6; }
.pro-subclass-arrow { color: #94a3b8; transition: all .3s; }
.pro-subclass-arrow svg { width: 20px; height: 20px; }
.pro-subclass-card:hover .pro-subclass-arrow { color: #2563eb; transform: translateX(4px); }

/* 产品列表 */
.pro-products { padding: 20px 0; background: #fff; }
.pro-products-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.pro-sidebar { position: sticky; top: 100px; height: fit-content; }
.pro-sidebar-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.05); margin-bottom: 24px; }
.pro-sidebar-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
.pro-sidebar-title svg { width: 20px; height: 20px; color: #2563eb; }
.pro-filter-toggle { display: none; }
.pro-filter-body { display: block; }
.pro-filter-group { margin-bottom: 24px; }
.pro-filter-group:last-child { margin-bottom: 0; }
.pro-filter-group h4 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 0 0 12px; }
.pro-filter-list { list-style: none; padding: 0; margin: 0; }
.pro-filter-list li { margin-bottom: 8px; }
.pro-filter-list li:last-child { margin-bottom: 0; }
.pro-filter-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #000000; text-decoration: none; border-radius: 8px; transition: all .3s; font-size: 16px; }
.pro-filter-list a:hover { background: #f1f5f9; color: #2563eb; }
.pro-filter-dot { width: 6px; height: 6px; background: #cbd5e1; border-radius: 50%; transition: background .3s; }
.pro-filter-list a:hover .pro-filter-dot { background: #2563eb; }

/* 产品列表上方的介绍卡片 */
.pro-seo-card {
  background:#fff; border-radius:16px; padding:28px 30px;
  margin-bottom:24px; box-shadow:0 2px 12px rgba(0,0,0,.04);
  border:1px solid #eef2f6;
}
.pro-seo-card h2 {
  font-size:1.5rem; font-weight:700; color:#1e293b;
  margin:0 0 14px; padding-bottom:12px;
  border-bottom:2px solid #2563eb; display:inline-block;
}
.pro-seo-card-text {
  font-size:.93rem; line-height:1.8; color:#475569;
}
.pro-seo-card-text p { margin-bottom:12px; }

.pro-sidebar-cta { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); border-radius: 16px; padding: 28px; text-align: center; color: #fff; }
.pro-cta-icon { width: 56px; height: 56px; background: rgba(255,255,255,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.pro-cta-icon svg { width: 28px; height: 28px; }
.pro-sidebar-cta h4 { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.pro-sidebar-cta p { font-size: .85rem; color: rgba(255,255,255,.85); margin: 0 0 20px; }
.pro-cta-btn { display: inline-block; padding: 12px 28px; background: #fff; color: #2563eb; font-size: .9rem; font-weight: 600; text-decoration: none; border-radius: 50px; transition: all .3s; }
.pro-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* 产品列表主体 */
.pro-main { min-width: 0; }
.pro-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; padding: 0 30px 20px; border-bottom: 1px solid #e2e8f0; }
.pro-list-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin: 0; }
.pro-list-count { font-size: .9rem; color: #64748b; }
.pro-list-count strong { color: #2563eb; font-weight: 700; }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.pro-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; transition: all .4s; }
.pro-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.1); border-color: rgba(37,99,235,.3); }
.pro-card-img { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f1f5f9; }
.pro-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pro-card:hover .pro-card-img img { transform: scale(1.08); }
.pro-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.pro-card-img-placeholder svg { width: 48px; height: 48px; }
.pro-card-overlay { position: absolute; inset: 0; background: rgba(15,23,36,.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .4s; }
.pro-card:hover .pro-card-overlay { opacity: 1; }
.pro-card-view { display: inline-block; padding: 12px 24px; background: #fff; color: #1e293b; font-size: .9rem; font-weight: 600; border-radius: 50px; transform: translateY(10px); transition: transform .4s; }
.pro-card:hover .pro-card-view { transform: translateY(0); }
.pro-card-body { padding: 24px; }
.pro-card-body h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; }
.pro-card-body h3 a { color: #1e293b; text-decoration: none; transition: color .3s; }
.pro-card-body h3 a:hover { color: #2563eb; }
.pro-card-body p { font-size: .9rem; color: #64748b; line-height: 1.6; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pro-card-footer { display: flex; align-items: center; justify-content: space-between; }
.pro-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: #2563eb; text-decoration: none; transition: all .3s; }
.pro-card-link svg { width: 16px; height: 16px; transition: transform .3s; }
.pro-card-link:hover svg { transform: translateX(4px); }

/* 分页 */
.pro-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 50px; padding-top: 30px; border-top: 1px solid #e2e8f0; }
.pro-page-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; text-decoration: none; transition: all .3s; }
.pro-page-btn svg { width: 18px; height: 18px; }
.pro-page-btn:hover { border-color: #2563eb; color: #2563eb; }
.pro-page-btn.is-disabled { opacity: .5; cursor: not-allowed; }
.pro-page-numbers { display: flex; gap: 8px; }
.pro-page-num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; font-size: .9rem; font-weight: 600; color: #475569; text-decoration: none; transition: all .3s; }
.pro-page-num:hover { border-color: #2563eb; color: #2563eb; }
.pro-page-num.is-active { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); color: #fff; border-color: transparent; box-shadow: 0 4px 15px rgba(37,99,235,.3); }
.pro-page-dots { color: #94a3b8; padding: 0 8px; }

/* 空状态 */
.pro-empty { text-align: center; padding: 80px 20px; }
.pro-empty-icon { width: 100px; height: 100px; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: #94a3b8; }
.pro-empty-icon svg { width: 48px; height: 48px; }
.pro-empty h3 { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin: 0 0 12px; }
.pro-empty p { font-size: 1rem; color: #64748b; margin: 0 0 24px; }
.pro-empty-btn { display: inline-block; padding: 14px 32px; background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); color: #fff; font-size: .95rem; font-weight: 600; text-decoration: none; border-radius: 50px; transition: all .3s; }
.pro-empty-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,99,235,.3); }

/* SEO 内容区 */
.pro-seo { padding: 80px 0; background: #fff; }
.pro-seo-content { max-width: 800px; margin: 0 auto; }
.pro-seo-content h2 { font-size: 2rem; font-weight: 800; color: #1e293b; margin: 0 0 30px; text-align: center; }
.pro-seo-text { font-size: 1.05rem; line-height: 2; color: #475569; }
.pro-seo-text p { margin-bottom: 16px; }

/* CTA */
.pro-cta-section { position: relative; padding: 100px 0; background: linear-gradient(135deg, #0f1724 0%, #1e3a5f 100%); overflow: hidden; }
.pro-cta-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,.2) 0%, transparent 50%); }
.pro-cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.pro-cta-content h2 { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0 0 12px; }
.pro-cta-content p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin: 0; }
.pro-cta-main-btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 40px; background: #fff; color: #2563eb; font-size: 1rem; font-weight: 700; text-decoration: none; border-radius: 50px; transition: all .3s; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.pro-cta-main-btn:hover { transform: translateY(-4px); box-shadow: 0 15px 50px rgba(0,0,0,.3); }
.pro-cta-main-btn svg { width: 20px; height: 20px; transition: transform .3s; }
.pro-cta-main-btn:hover svg { transform: translateX(4px); }

/* 响应式 */
@media(max-width: 1200px) {
  .pro-hero { padding: 120px 0 15px; }
  .pro-breadcrumb { margin-bottom: 16px; }
  .pro-products-layout { grid-template-columns: 1fr; gap: 5px; }
  .pro-sidebar { position: relative; top: 0; }
  .pro-cta-inner { flex-direction: column; text-align: center; }
  .pro-hero-title { font-size: clamp(1.2rem, 5vw, 2.2rem); }
  /* 移动端筛选折叠 */
  .pro-sidebar-card { padding: 16px; position: relative; }
  .pro-sidebar-cta { display: none; }
  /* 缩小内容与banner间距 */
  .pro-products { padding-top: 16px; }
  .pro-seo-card { padding: 16px 18px; margin-bottom: 15px; }
  .pro-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0;
  }
  .pro-filter-toggle span { white-space: nowrap; }
  .pro-filter-toggle .toggle-icon { width: 16px; height: 16px; transition: transform .3s; }
  .pro-filter-toggle.open .toggle-icon { transform: rotate(180deg); }
  .pro-filter-body { display: none; }
  .pro-filter-toggle.open + .pro-filter-body { display: block; }
}
@media(max-width: 480px) {
  .pro-grid { grid-template-columns: 1fr; }
  .pro-list-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}
