/* ============================================================
   产品中心页面样式
   ============================================================ */

/* ---------- Search Box ---------- */
.products-search {
  margin-bottom: 24px;
}
.search-input-wrap {
  position: relative; max-width: 480px; margin: 0 auto;
}
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1rem; color: var(--text-lighter); pointer-events: none;
  line-height: 1;
}
.search-input {
  width: 100%; padding: 12px 44px 12px 44px;
  border: 1px solid var(--border); border-radius: 50px;
  font-size: .95rem; color: var(--text); background: var(--bg-light);
  transition: all var(--transition);
}
.search-input::placeholder {
  color: var(--text-lighter);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,158,255,.12);
  background: #fff;
}
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.06); color: var(--text-light);
  font-size: 1.1rem; cursor: pointer; display: none;
  align-items: center; justify-content: center;
  border: none; transition: all var(--transition);
}
.search-clear:hover {
  background: rgba(0,0,0,.12); color: var(--text);
}
.search-no-result {
  text-align: center; padding: 60px 20px;
  color: var(--text-lighter); font-size: 1.05rem;
}

/* ---------- Filter Tabs ---------- */
.products-filter {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 28px; border-radius: 50px; font-size: .95rem;
  font-weight: 500; cursor: pointer; transition: all var(--transition);
  background: var(--bg-light); color: var(--text-light);
  border: 1px solid var(--border);
}
.filter-btn:hover { color: var(--accent); border-color: var(--accent); }
.filter-btn.active {
  background: var(--accent-gradient); color: #fff;
  border-color: transparent; box-shadow: 0 4px 16px rgba(74,158,255,.3);
}

/* ---------- Products Grid ---------- */
.products-list-section { background: #fff; }
.products-full-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
.product-full-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition); cursor: pointer;
}
.product-full-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-lg);
}
.product-full-card .card-img {
  height: 280px; overflow: hidden; position: relative;
}
.product-full-card .card-img .placeholder-img {
  transition: transform .5s ease;
}
.product-full-card:hover .card-img .placeholder-img {
  transform: scale(1.06);
}
.product-full-card .card-body { padding: 32px; }
.product-full-card .card-body h3 {
  font-size: 1.35rem; color: var(--primary); margin-bottom: 14px;
}
.product-full-card .card-body p {
  font-size: 1rem; color: var(--text-light); line-height: 1.8;
  margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-full-card .card-features {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.product-full-card .card-features span {
  padding: 5px 14px; background: rgba(74,158,255,.08);
  color: var(--accent); font-size: .85rem; border-radius: 20px;
  font-weight: 500;
}
.product-full-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: .95rem; font-weight: 600;
  transition: gap var(--transition);
}
.product-full-card:hover .card-link { gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products-full-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .products-full-grid { grid-template-columns: 1fr; }
  .search-input-wrap { max-width: 100%; }
}
