/* ===========================
   Second Category Banner
   与 culture.html 保持一致的页面横幅规范
   =========================== */
.banner {
  position: relative;
  background: #2d2d3d;
  overflow: hidden;
  margin-top: var(--site-header-height);
}

.banner-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3a3a4a;
}

.banner-bg .placeholder-icon {
  opacity: 0.15;
  color: #ffffff;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.banner-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgb(0, 0, 0), rgba(18, 18, 20, 0.9), rgba(26, 26, 46, 0));
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 64px 0 60px;
}

.banner-content h1 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.banner-content p {
  font-size: 17px;
  color: #c0c0c8;
  margin-bottom: 28px;
  font-weight: 300;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #999;
}

.breadcrumb a {
  color: #999;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  display: flex;
  align-items: center;
}

.breadcrumb .sep svg {
  width: 14px;
  height: 14px;
  color: #666;
}

.breadcrumb .current {
  color: #ddd;
}

/* ============ CATEGORY TABS ============ */
.category-section {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.category-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-categories {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

.main-cat {
  padding: 16px 24px;
  font-size: 14px;
  color: #888;
  position: relative;
  transition: color 0.2s;
}

.main-cat:hover {
  color: #333;
}

.main-cat.active {
  color: #1a1a1a;
  font-weight: 600;
}

.main-cat.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #1a1a1a;
}

.sub-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
}

.sub-cat {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  background: #f5f5f5;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.sub-cat:hover {
  background: #eee;
}

.sub-cat.active {
  background: #fff;
  color: #f5a623;
  border-color: #f5a623;
  font-weight: 500;
}

/* ============ MAIN CONTENT ============ */
.main-content {
  background: #fff;
}

.content-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  gap: 32px;
}

/* ============ FILTER SIDEBAR ============ */
.filter-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-options .visible-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-options .more-options {
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.filter-options.expanded .more-options {
  display: flex;
  max-height: 500px;
  opacity: 1;
  margin-top: 8px;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: color 0.2s;
}

.filter-options label:hover {
  color: #1a1a1a;
}

.filter-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #ccc;
  cursor: pointer;
  accent-color: #f5a623;
}

.more-btn {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.more-btn:hover {
  color: #333;
}

.more-btn.active {
  color: #0066cc;
}

.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.btn-reset {
  padding: 8px 16px;
  background: #f5a623;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-reset:hover {
  background: #e09520;
}

.btn-apply {
  padding: 8px 16px;
  border: 1px solid #ddd;
  color: #555;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-apply:hover {
  background: #f5f5f5;
}

/* ============ PRODUCTS AREA ============ */
.products-area {
  flex: 1;
  min-width: 0;
}

.products-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-count {
  font-size: 14px;
  color: #666;
}

.product-count strong {
  color: #1a1a1a;
}

.sort-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: #f5a623;
}

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.product-image {
  aspect-ratio: 6 / 5;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bottle-shape {
  position: relative;
}

.bottle-cap {
  width: 16px;
  height: 20px;
  background: #999;
  border-radius: 3px 3px 0 0;
  margin: 0 auto;
}

.bottle-body {
  width: 56px;
  height: 72px;
  background: linear-gradient(to bottom, #bbb, #999);
  border-radius: 0 0 6px 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottle-label {
  background: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #555;
}

.product-brand {
  font-size: 11px;
  color: #aaa;
}

.product-info {
  padding: 16px;
}

.product-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 3px;
  margin-bottom: 8px;
}

.tag-gasoline {
  background: rgba(245, 166, 35, 0.12);
  color: #e8a020;
}

.tag-cleaning {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.tag-diesel {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.tag-coolant {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.tag-brake {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.tag-power-steering {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.tag-urea {
  background: rgba(14, 116, 144, 0.12);
  color: #0e7090;
}

.tag-gas {
  background: rgba(22, 163, 98, 0.1);
  color: #16a34a;
}

.tag-grease {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}

.tag-mechanical {
  background: rgba(20, 184, 166, 0.12);
  color: #14b8a6;
}

.tag-tractor {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.tag-hydraulic-fluid {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.tag-aviation-hydraulic {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.tag-aw-hydraulic {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.tag-low-temp-hydraulic {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
}

.tag-rust-proof-hydraulic {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.tag-guide-rail {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
}

.tag-fire-resistant {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.tag-mine-hydraulic {
  background: rgba(132, 204, 22, 0.12);
  color: #84cc16;
}

.tag-closed-gear {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.tag-open-gear {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
}

.tag-worm-gear {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
}

.tag-special-gear {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.tag-air-compressor {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.tag-turbine-oil {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.tag-refrigeration {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

.tag-spindle {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
}

.tag-instrument {
  background: rgba(236, 72, 153, 0.12);
  color: #db2777;
}

.tag-sewing {
  background: rgba(249, 115, 22, 0.12);
  color: #f59e0b;
}

.tag-chain {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}

.tag-vacuum {
  background: rgba(75, 85, 99, 0.12);
  color: #4b5563;
}

.tag-rock-drill {
  background: rgba(132, 204, 22, 0.12);
  color: #65a30d;
}

.tag-steam-cylinder {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.tag-industrial-white {
  background: rgba(229, 231, 235, 0.5);
  color: #6b7280;
}

.tag-special-kerosene {
  background: rgba(251, 191, 36, 0.12);
  color: #d97706;
}

.tag-shock-absorber {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
}

.tag-cutting-fluid {
  background: rgba(20, 184, 166, 0.12);
  color: #14b8a6;
}

.tag-emulsified-oil {
  background: rgba(251, 146, 60, 0.12);
  color: #f97316;
}

.tag-quenching-oil {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
}

.tag-rust-preventive {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.tag-insulating-oil {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.tag-heat-transfer {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.tag-hydraulic {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.tag-cvt {
  background: rgba(236, 72, 153, 0.1);
  color: #db2777;
}

.tag-dct {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.tag-atf {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
}

.tag-methanol {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
}

.tag-gear {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.tag-motorcycle {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.tag-small-engine {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.tag-new-energy {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.product-card:hover .product-name {
  color: #f5a623;
}

.product-spec {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-sizes span {
  font-size: 11px;
  color: #aaa;
}

.product-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: color 0.2s;
}

.product-card:hover .product-arrow {
  color: #f5a623;
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 14px;
  color: #555;
  border: 1px solid #e0e0e0;
  transition: all 0.2s;
  cursor: pointer;
  background: #fff;
}

.page-btn:hover:not(.active):not(.disabled) {
  background: #f5f5f5;
}

.page-btn.active {
  background: #f5a623;
  color: #fff;
  border-color: #f5a623;
  font-weight: 500;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn.dots {
  border: none;
  cursor: default;
  color: #999;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-inner {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
  }

  .main-categories {
    overflow-x: auto;
  }

  .sub-categories {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-inner,
  .content-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============ EMPTY STATE ============ */
.product-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #999;
}

.empty-reset-btn {
  margin-top: 12px;
  color: #f5a623;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.empty-reset-btn:hover {
  color: #e09520;
}

/* ============ REFERENCE IMAGE REFINEMENTS ============ */
/* 主分类导航：按参考图横向均匀分布 */
.main-categories {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  border-bottom: 1px solid #eeeeee;
}

.main-cat {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0 16px;
  text-align: center;
  font-size: 16px;
  color: #999999;
  font-weight: 400;
}

.main-cat:hover {
  color: #1a1a1a;
}

.main-cat.active {
  color: #1a1a1a;
  font-weight: 700;
}

.main-cat.active::after {
  left: 50%;
  right: auto;
  bottom: 0;
  width: 88px;
  height: 3px;
  transform: translateX(-50%);
  background: #f5a623;
  border-radius: 3px 3px 0 0;
}

/* 二级分类按钮：更接近参考图中的浅色矩形按钮 */
.sub-categories {
  gap: 12px;
  padding: 26px 0 30px;
}

.sub-cat {
  min-width: 108px;
  padding: 10px 24px;
  border-radius: 0;
  border: 1px solid #eeeeee;
  background: #ffffff;
  color: #777777;
  font-size: 14px;
  font-weight: 400;
}

.sub-cat:hover {
  color: #1a1a1a;
  background: #ffffff;
  border-color: #dddddd;
}

.sub-cat.active {
  color: #f5a623;
  font-weight: 700;
  background: #ffffff;
  border-color: #f5a623;
}

/* 筛选侧栏：标题加粗、关键文字黑色，区域分隔更清晰 */
.filter-sidebar {
  width: 188px;
  padding: 18px 18px 20px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}

.filter-group {
  margin-bottom: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid #eeeeee;
}

.filter-group + .filter-group {
  padding-top: 18px;
}

.filter-group h3 {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #111111;
  font-weight: 700;
}

.filter-options {
  gap: 8px;
}

.filter-options label {
  font-size: 13px;
  line-height: 1.35;
  color: #333333;
  font-weight: 400;
}

.filter-options label:hover {
  color: #111111;
  font-weight: 500;
}

.filter-options input[type="checkbox"] {
  width: 13px;
  height: 13px;
  border-color: #cfcfcf;
  accent-color: #f5a623;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: #333333;
  font-size: 13px;
  font-weight: 400;
}

.more-btn:hover {
  color: #111111;
  font-weight: 500;
}

.filter-actions {
  margin-top: 20px;
  gap: 10px;
}

.btn-reset,
.btn-apply {
  min-width: 72px;
  height: 34px;
  padding: 0 14px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
}

.btn-reset {
  background: #f5a623;
  color: #111111;
}

.btn-reset:hover {
  background: #e8a020;
}

.btn-apply {
  border: 1px solid #dcdcdc;
  background: #ffffff;
  color: #111111;
}

.btn-apply:hover {
  border-color: #c9c9c9;
  background: #f8f8f8;
}

/* 产品区顶部文字：数量与排序文字按参考图统一为更清晰的黑灰体系 */
.product-count {
  color: #777777;
  font-weight: 400;
}

.product-count strong {
  color: #111111;
  font-weight: 700;
}

.sort-select {
  min-width: 190px;
  height: 36px;
  border-radius: 2px;
  color: #111111;
  font-weight: 500;
}

/* 分页：数字黑色、当前页加粗高亮，整体更贴近参考图 */
.pagination {
  gap: 10px;
  padding: 60px 0 34px;
}

.page-btn {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  border-color: #e3e3e3;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
}

.page-btn:hover:not(.active):not(.disabled) {
  color: #111111;
  border-color: #f5a623;
  background: #fff8ea;
}

.page-btn.active {
  background: #f5a623;
  border-color: #f5a623;
  color: #ffffff;
  font-weight: 700;
}

.page-btn.disabled {
  color: #111111;
  opacity: 1;
  background: #ffffff;
  border-color: #e3e3e3;
}

.page-btn.dots {
  color: #999999;
  font-weight: 600;
  background: #ffffff;
}

@media (max-width: 768px) {
  .main-categories {
    justify-content: flex-start;
  }

  .main-cat {
    flex: 0 0 auto;
    min-width: 132px;
    min-height: 56px;
    font-size: 14px;
  }

  .main-cat.active::after {
    width: 64px;
  }

  .filter-sidebar {
    width: 100%;
  }
}


/* ============ FINAL LAYOUT CORRECTIONS / Swiss product catalogue system ============
   设计提醒：采用“瑞士国际主义产品目录系统”。所有改动都应强化宽幅目录、左侧筛选、左图右文与克制黄色强调，避免过度装饰。
   修正目标：1) .filter-sidebar 继续向左移动；2) .main-categories 向左右扩展；3) 产品图在左、描述在右。
*/
@media (min-width: 1200px) {
  .category-inner,
  .content-inner {
    max-width: 1480px;
  }

  .category-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-inner {
    padding: 28px 16px 32px;
    gap: 44px;
  }
}

@media (min-width: 1500px) {
  .category-inner,
  .content-inner {
    max-width: 1504px;
  }
}

.main-categories {
  width: 100%;
  justify-content: space-between;
}

.main-cat {
  flex: 1 1 0;
  min-width: 0;
}

.filter-sidebar {
  width: 178px;
  flex: 0 0 178px;
  margin-left: 0;
}

.products-area {
  flex: 1 1 auto;
  min-width: 0;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 238px;
  border-radius: 8px;
  overflow: hidden;
}

.product-image {
  aspect-ratio: auto;
  min-height: 238px;
  height: 100%;
  padding: 22px 14px 20px 22px;
  background: #ffffff;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  justify-content: center;
}

.bottle-shape {
  transform: scale(1.34);
  transform-origin: center center;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 22px 16px 18px 12px;
}

.product-tag {
  align-self: flex-start;
  margin-bottom: 10px;
  white-space: nowrap;
}

.product-name {
  font-size: 17px;
  line-height: 1.24;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.product-spec {
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 8px;
  color: #333333;
}

.product-desc {
  -webkit-line-clamp: 3;
  margin-bottom: 16px;
  color: #555555;
}

.product-bottom {
  margin-top: auto;
}

@media (max-width: 1199px) {
  .content-inner {
    gap: 28px;
  }

  .filter-sidebar {
    width: 188px;
    flex-basis: 188px;
  }

  .product-card {
    grid-template-columns: 42% 58%;
    min-height: 220px;
  }

  .product-image {
    min-height: 220px;
    padding: 18px 10px 18px 16px;
  }

  .bottle-shape {
    transform: scale(1.2);
  }
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .filter-sidebar {
    flex: 0 0 auto;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-image {
    aspect-ratio: 1;
    min-height: 0;
    height: auto;
    padding: 24px;
  }

  .product-info {
    padding: 16px;
  }

  .bottle-shape {
    transform: scale(1);
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}


/* ============ SECOND PASS CORRECTIONS / 8 products and bottle name space ============
   设计提醒：继续遵循“瑞士国际主义产品目录系统”。桌面端产品列表必须呈现稳定的 4 列 × 2 行分页节奏；瓶身占位图中粘度参数下移，上方保留品牌/产品名称区域。
*/
@media (min-width: 1025px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(244px, auto);
    gap: 22px 20px;
  }

  .product-card[hidden] {
    display: none !important;
  }

  .product-card:not([hidden]) {
    display: grid;
  }
}

.bottle-body {
  width: 68px;
  height: 92px;
  padding-top: 22px;
  align-items: flex-start;
  overflow: hidden;
}

.bottle-body::before {
  content: 'LUBEMAX';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  text-align: center;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #f5a623;
}

.bottle-body::after {
  content: 'ENGINE OIL';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  text-align: center;
  font-size: 6px;
  line-height: 1;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: #555555;
}

.bottle-label {
  margin-top: 18px;
  min-width: 48px;
  padding: 7px 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1;
  color: #333333;
}

@media (min-width: 1025px) {
  .product-card {
    min-height: 244px;
  }

  .product-image {
    min-height: 244px;
  }
}

@media (max-width: 768px) {
  .bottle-body {
    width: 56px;
    height: 76px;
    padding-top: 16px;
  }

  .bottle-body::before {
    top: 8px;
    width: 50px;
    font-size: 6px;
  }

  .bottle-body::after {
    top: 16px;
    width: 50px;
    font-size: 5px;
  }

  .bottle-label {
    margin-top: 15px;
    min-width: 40px;
    padding: 5px 4px;
    font-size: 10px;
  }
}


/* ============ THIRD PASS CORRECTIONS / compact products-area spacing ============
   设计提醒：继续遵循“瑞士国际主义产品目录系统”。产品区应保持紧凑、清晰，减少顶部无效留白，使产品卡片与分页更接近内容入口。
*/
.content-inner {
  padding-top: 16px;
  padding-bottom: 24px;
}

.products-topbar {
  margin-bottom: 12px;
}

.product-grid {
  margin-top: 0;
}

.pagination {
  padding-top: 22px;
  padding-bottom: 24px;
}

@media (min-width: 1200px) {
  .content-inner {
    padding-top: 16px;
    padding-bottom: 26px;
  }
}

@media (max-width: 768px) {
  .content-inner {
    padding-top: 14px;
    padding-bottom: 22px;
  }

  .products-topbar {
    margin-bottom: 10px;
  }

  .pagination {
    padding-top: 30px;
    padding-bottom: 22px;
  }
}


/* ============ FOURTH PASS CORRECTIONS / remove red-box blank under products ============
   设计提醒：继续遵循“瑞士国际主义产品目录系统”。红框空白的根因是左侧筛选栏高度参与了内容区高度计算，导致右侧 `.products-area` 下方被动留下大片空白；桌面端将筛选栏绝对定位，不再撑高右侧产品区。
*/
@media (min-width: 769px) {
  .content-inner {
    position: relative;
    display: block;
    padding-left: 238px;
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .filter-sidebar {
    position: absolute;
    left: 16px;
    top: 16px;
    margin: 0;
  }

  .products-area {
    display: block;
    width: 100%;
    min-height: 0;
  }

  .product-grid {
    margin-bottom: 0;
  }

  .pagination {
    min-height: 0;
    height: auto;
    margin-top: 30px;
    padding: 14px 0 0;
  }
}

@media (min-width: 1200px) {
  .content-inner {
    padding-left: 238px;
  }

  .filter-sidebar {
    left: 16px;
  }
}

@media (max-width: 768px) {
  .content-inner {
    display: flex;
  }
}


/* ============ FIFTH PASS CORRECTIONS / align right products with left filter height ============
   设计提醒：用户要求不是删除空白，而是让右侧产品卡片与分页向下补充到空白区域中，并与左侧筛选栏形成视觉对齐。桌面端恢复筛选栏参与高度参照，右侧产品区用纵向 flex 分配空间。
*/
@media (min-width: 769px) {
  .content-inner {
    display: flex;
    align-items: stretch;
    position: relative;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
    padding-bottom: 22px;
    gap: 44px;
  }

  .filter-sidebar {
    position: static;
    left: auto;
    top: auto;
    flex: 0 0 178px;
    width: 178px;
    align-self: stretch;
  }

  .products-area {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 1100px;
  }

  .products-topbar {
    flex: 0 0 auto;
    margin-bottom: 12px;
  }

  .product-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 0;
    align-content: stretch;
    align-items: stretch;
    gap: 20px;
    min-height: 800px;
    margin-bottom: 0;
  }

  .product-card:not([hidden]) {
    display: grid;
    height: 100%;
    min-height: 0;
  }

  .product-card[hidden] {
    display: none !important;
  }

  .product-image {
    min-height: 0;
    height: 100%;
  }

  .pagination {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    margin-top: 30px;
    padding: 14px 0 0;
  }
}

@media (min-width: 1200px) {
  .content-inner {
    padding-left: 16px;
    padding-right: 16px;
    gap: 44px;
  }
}

@media (min-width: 1500px) {
  .products-area {
    min-height: 920px;
  }

  .product-grid {
    min-height: 740px;
  }
}

@media (max-width: 768px) {
  .products-area {
    min-height: 0;
  }

  .product-grid {
    min-height: 0;
    grid-auto-rows: auto;
  }
}


/* ============ FIFTH PASS MICRO-ADJUSTMENT / keep pagination aligned without overlap ============
   设计提醒：右侧内容需要填入空白并与筛选栏底部对齐，但分页不能压到第二行卡片上。这里压缩两行产品的分配高度，给分页留出清晰位置。
*/
@media (min-width: 769px) {
  .product-grid {
    flex: 0 0 760px;
    min-height: 760px;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 20px 20px;
  }

  .product-card:not([hidden]) {
    height: 100%;
    max-height: 240px;
  }

  .pagination {
    margin-top: 80px !important;
    padding-top: 20px;
    padding-bottom: 10px;
  }
}


/* ============ SIXTH PASS CORRECTIONS / new energy first-level category ============
   设计提醒：新增“新能源系列”应作为一级分类中的绿色新能源入口，使用绿色图标、NEW 标识和绿色下划线，同时不破坏原有瑞士目录式横向分类秩序。
*/
.main-cat-new-energy {
  position: relative;
  gap: 6px;
  color: #16a34a;
  font-weight: 700;
  overflow: visible;
}

.main-cat-new-energy:hover {
  color: #11883d;
}

.main-cat-new-energy::after {
  content: '';
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  width: 88px;
  height: 3px;
  transform: translateX(-50%);
  background: #22c55e;
  border-radius: 3px 3px 0 0;
}

.new-energy-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid #16a34a;
  border-radius: 50%;
}

.new-energy-icon::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 9px;
  background: #16a34a;
  clip-path: polygon(55% 0, 100% 0, 62% 42%, 100% 42%, 34% 100%, 48% 55%, 0 55%);
}

.new-energy-text {
  white-space: nowrap;
}

.new-energy-badge {
  position: absolute;
  top: 11px;
  right: calc(50% - 58px);
  padding: 1px 4px;
  border: 1px solid #22c55e;
  border-radius: 2px;
  color: #16a34a;
  background: #f0fdf4;
  font-size: 8px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .main-cat-new-energy {
    padding-right: 22px;
  }

  .new-energy-badge {
    top: 8px;
    right: 12px;
  }

  .main-cat-new-energy::after {
    width: 76px;
  }
}
/* ============ MOBILE LAYOUT ONLY PATCH / based on user's original code ============
   本段只修正移动端布局，不替换、不生成、不重做任何原有图片资源；banner 与产品图继续使用原始 HTML/CSS 引用。
*/
@media (max-width: 768px) {
  html { --site-header-height: 64px; }
  body { overflow-x: hidden; background: #fff; }
  .site-header { position: fixed; background: #000; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: none; }
  .site-header .container, .banner .container { padding-left: 26px; padding-right: 26px; }
  .header-inner { height: 64px; }
  .logo-wrap { gap: 7px; max-width: 235px; overflow: hidden; }
  .logo-image, .logo-extra { height: 30px; flex: 0 0 auto; }
  .logo-extra { margin-right: 0; }
  .logo-text { font-size: 18px; letter-spacing: .02em; }
  .logo-tagline { font-size: 10px; margin-top: 3px; color: rgba(255,255,255,.78); }
  .header-actions { gap: 18px; }
  .header-btn, .mobile-toggle { width: 28px; height: 28px; color: #fff; }
  .lang-switch { display: none; }

  .banner { margin-top: var(--site-header-height); min-height: 256px; background: #050607; }
  .banner-overlay { background-position: center center; }
  .banner-overlay::after { background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.68) 48%, rgba(0,0,0,.1) 100%), linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.3)); }
  .banner-content { min-height: 256px; padding-top: 48px; padding-bottom: 28px; display: flex; flex-direction: column; justify-content: center; }
  .banner-content h1 { margin-bottom: 14px; font-size: clamp(34px, 9.6vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.04em; }
  .banner-content p { width: min(92%, 470px); margin-bottom: 0; font-size: 16px; line-height: 1.82; color: rgba(255,255,255,.92); font-weight: 400; }
  .breadcrumb { display: none; }

  .category-section { position: relative; z-index: 2; margin-top: 0; border-radius: 8px 8px 0 0; border-bottom: 1px solid #eee; background: #fff; }
  .category-inner { padding: 0; max-width: none; }
  .main-categories { display: flex; justify-content: flex-start; gap: 0; overflow-x: auto; overflow-y: hidden; padding: 0; border-bottom: 1px solid #eee; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .main-categories::-webkit-scrollbar, .sub-categories::-webkit-scrollbar { display: none; }
  .main-cat { flex: 0 0 92px; min-width: 92px; height: 112px; padding: 56px 8px 18px; color: #8c8c8c; font-size: 13px; line-height: 1.15; text-align: center; white-space: normal; scroll-snap-align: start; }
  .main-cat.active { color: #111; font-weight: 700; }
  .main-cat.active::after { left: 18px; right: 18px; bottom: 0; height: 3px; background: #f4c21f; border-radius: 4px 4px 0 0; transform: none; width: auto; }
  .main-cat::before { content: ''; position: absolute; top: 28px; left: 50%; width: 24px; height: 24px; transform: translateX(-50%); border: 2px solid currentColor; border-radius: 50%; opacity: .9; }
  .main-cat:nth-child(3)::before, .main-cat:nth-child(4)::before, .main-cat:nth-child(5)::before, .main-cat:nth-child(6)::before { border-radius: 7px; }
  .main-cat-new-energy { flex-basis: 118px; min-width: 118px; height: 112px; padding: 58px 10px 18px; border: 1px solid rgba(34,197,94,.22); background: #f1fbf7; color: #35b779; }
  .main-cat-new-energy::before, .main-cat-new-energy::after { display: none; }
  .new-energy-icon { position: absolute; top: 27px; left: 50%; width: 28px; height: 28px; transform: translateX(-50%); border-width: 2px; }
  .new-energy-badge { top: 8px; right: 8px; font-size: 10px; border-radius: 999px; background: #79d85a; color: #fff; border-color: transparent; }
  .sub-categories { justify-content: flex-start; flex-wrap: nowrap; gap: 12px; overflow-x: auto; padding: 20px 26px 16px; border-bottom: 0; -webkit-overflow-scrolling: touch; }
  .sub-cat { flex: 0 0 auto; min-width: 88px; height: 38px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; border: 1px solid #e8e8e8; background: #fff; color: #333; font-size: 14px; }
  .sub-cat.active { border-color: #f5e7a5; background: #fff; color: #d9aa00; font-weight: 700; }

  .main-content { background: #fff; }
  .content-inner { display: block; max-width: none; padding: 0 26px 32px; }
  .filter-sidebar { width: 100%; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; background: transparent; border: 0; }
  .filter-group { position: relative; margin: 0; padding: 0; border: 0; background: transparent; }
  .filter-group h3, .filter-actions .btn-reset, .sort-select { width: 100%; height: 44px; padding: 0 34px 0 14px; display: flex; align-items: center; justify-content: flex-start; border: 1px solid #e9e9e9; border-radius: 6px; background: #fff; color: #222; font-size: 14px; font-weight: 600; box-shadow: 0 1px 6px rgba(0,0,0,.03); }
  .filter-group h3::after, .filter-actions .btn-reset::before { content: ''; position: absolute; right: 15px; top: 18px; width: 8px; height: 8px; border-right: 1.5px solid #111; border-bottom: 1.5px solid #111; transform: rotate(45deg); }
  .filter-options, .more-btn { display: none; }
  .filter-actions { margin: 0; display: block; }
  .filter-actions .btn-reset { position: relative; font-size: 0; color: #222; text-align: left; }
  .filter-actions .btn-reset::after { content: '筛选'; font-size: 14px; }

  .products-area { margin-top: 18px; }
  .products-topbar { display: grid; grid-template-columns: 1fr 44px; grid-template-areas: 'sort sort' 'count view'; gap: 14px 12px; align-items: center; margin: 0 0 12px; }
  .sort-select { grid-area: sort; appearance: none; background-image: none; }
  .product-count { grid-area: count; color: #777; font-size: 15px; }
  .product-count strong { color: #444; font-weight: 600; }
  .products-topbar::after { content: ''; grid-area: view; width: 44px; height: 44px; justify-self: end; border-radius: 7px; background: linear-gradient(#222,#222) 12px 12px/8px 8px no-repeat, linear-gradient(#222,#222) 25px 12px/8px 8px no-repeat, linear-gradient(#222,#222) 12px 25px/8px 8px no-repeat, linear-gradient(#222,#222) 25px 25px/8px 8px no-repeat, #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
  .product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
  .product-card { min-width: 0; grid-template-columns: 1fr; min-height: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-image { aspect-ratio: auto; min-height: 0; height: clamp(170px, 46vw, 250px); padding: 16px 10px 6px; background: #fafafa; border-radius: 0; }
  .product-image-placeholder { height: 100%; background: transparent; }
  .bottle-shape { transform: scale(.88); }
  .product-brand { bottom: 7px; font-size: 9px; }
  .product-info { padding: 8px 0 14px; }
  .product-tag { margin-bottom: 7px; padding: 2px 5px; border-radius: 2px; font-size: 15px; line-height: 1.2; }
  .product-name { margin-bottom: 3px; font-size: 18px; line-height: 1.25; font-weight: 800; color: #111; letter-spacing: -.02em; }
  .product-spec { margin-bottom: 6px; min-height: 18px; font-size: 13px; line-height: 1.35; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-desc { display: none; }
  .product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .product-sizes { display: flex; gap: 12px; min-width: 0; overflow: hidden; color: #777; }
  .product-sizes span { font-size: 13px; line-height: 1.3; white-space: nowrap; background: transparent; padding: 0; }
  .product-arrow { flex: 0 0 auto; width: auto; height: auto; border-radius: 0; background: transparent; color: #111; font-size: 22px; line-height: 1; }
  .pagination { margin-top: 40px; }
}

@media (max-width: 380px) {
  .site-header .container, .banner .container, .content-inner { padding-left: 18px; padding-right: 18px; }
  .sub-categories { padding-left: 18px; padding-right: 18px; }
  .main-cat { flex-basis: 86px; min-width: 86px; }
  .product-grid { gap: 12px; }
  .product-name { font-size: 14px; }
  .product-sizes { gap: 8px; }
}


/* ============ MOBILE PAGINATION GRID PATCH / 8 items as 2 columns x 4 rows ============
   修正目标：移动端继续沿用原 JS 的 itemsPerPage = 8，只补强布局层；每页 8 个产品以两列四行呈现，并确保 hidden 产品不占位、不破坏原图片资源。
*/
@media (max-width: 768px) {
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    grid-auto-rows: auto;
    align-items: start;
    gap: 14px 14px;
  }

  .product-card[hidden] {
    display: none !important;
  }

  .product-card:not([hidden]) {
    display: grid !important;
    width: 100%;
  }

  .product-card:nth-last-child(-n + 1) {
    margin-bottom: 0;
  }

  .pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-bottom: 28px;
  }
}


/* =========================================================
   Mobile refinement patch 2026-05-02
   Scope: only layout presentation; keep original HTML, JS and image paths.
   Goals: remove mobile category icon placeholders and refine header logo alignment.
   ========================================================= */
@media (max-width: 768px) {
  .site-header .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .header-inner {
    height: 58px !important;
    align-items: center !important;
  }

  .header-inner > a {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    max-width: calc(100% - 88px) !important;
  }

  .logo-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    max-width: 100% !important;
    overflow: visible !important;
    line-height: 1 !important;
  }

  .logo-image {
    width: 68px !important;
    height: auto !important;
    max-height: 28px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
  }

  .logo-text-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 0 1 auto !important;
    min-width: 50px !important;
    max-width: 62px !important;
    transform: translateY(-1px) !important;
  }

  .logo-text {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    color: #f1b51c !important;
  }

  .logo-tagline {
    display: block !important;
    margin-top: 2px !important;
    font-size: 7px !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
    color: rgba(255,255,255,.68) !important;
    white-space: nowrap !important;
  }

  .logo-extra {
    width: 62px !important;
    height: auto !important;
    max-height: 26px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
    margin-left: 2px !important;
  }

  .header-actions {
    flex: 0 0 auto !important;
    gap: 14px !important;
  }

  .main-cat {
    height: 72px !important;
    padding: 0 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 86px !important;
    min-width: 86px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .main-cat::before {
    content: none !important;
    display: none !important;
  }

  .main-cat.active::after {
    bottom: 0 !important;
  }

  .main-cat-new-energy {
    height: 72px !important;
    padding: 0 10px 12px !important;
    flex-basis: 106px !important;
    min-width: 106px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .main-cat-new-energy::before,
  .main-cat-new-energy::after,
  .new-energy-icon {
    content: none !important;
    display: none !important;
  }

  .new-energy-badge {
    top: 6px !important;
    right: 8px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    padding: 2px 5px !important;
  }
}

@media (max-width: 390px) {
  .site-header .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .header-inner > a {
    max-width: calc(100% - 78px) !important;
  }

  .logo-wrap {
    gap: 5px !important;
  }

  .logo-image {
    width: 62px !important;
    max-height: 25px !important;
  }

  .logo-text-wrap {
    max-width: 55px !important;
    min-width: 46px !important;
  }

  .logo-text {
    font-size: 12px !important;
  }

  .logo-tagline {
    font-size: 6px !important;
  }

  .logo-extra {
    width: 55px !important;
    max-height: 23px !important;
  }

  .header-actions {
    gap: 10px !important;
  }
}


/* =========================================================
   Factory-style mobile header logo alignment patch 2026-05-02
   Scope: CSS-only mobile header correction based on factory page.
   Rule: keep original logo images and use height-driven proportions;
   remove narrow text constraints so the company name stays aligned.
   ========================================================= */
@media (max-width: 768px) {
  .site-header {
    position: fixed !important;
    background: rgba(10, 10, 20, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }

  .site-header .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .header-inner {
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .header-inner > a {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .logo-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    max-width: none !important;
    overflow: visible !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .logo-image,
  .logo-extra {
    height: 38px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 38px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
  }

  .logo-extra {
    margin-left: 0 !important;
    margin-right: 10px !important;
  }

  .logo-text-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .logo-text {
    display: block !important;
    color: #f0a500 !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
  }

  .logo-tagline {
    display: block !important;
    margin-top: 4px !important;
    color: #888 !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  .header-actions {
    flex: 0 0 auto !important;
    gap: 10px !important;
  }
}

@media (max-width: 380px) {
  .site-header .container {
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
  }

  .logo-wrap {
    gap: 9px !important;
  }

  .logo-image,
  .logo-extra {
    height: 34px !important;
    max-height: 34px !important;
  }

  .logo-extra {
    margin-right: 6px !important;
  }

  .logo-text {
    font-size: 1.2rem !important;
    letter-spacing: 0.04em !important;
  }

  .logo-tagline {
    font-size: 0.7rem !important;
  }
}


/* =========================================================
   Mobile header final fit patch 2026-05-02
   Refinement after 390px check: keep factory text behavior, but
   constrain logo group so search/menu actions remain visible.
   ========================================================= */
@media (max-width: 768px) {
  .header-inner > a {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 76px) !important;
  }

  .logo-wrap {
    width: 100% !important;
    max-width: 100% !important;
    gap: 7px !important;
    overflow: visible !important;
  }

  .logo-image {
    width: 68px !important;
    height: auto !important;
    max-width: 68px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    flex: 0 0 68px !important;
  }

  .logo-text-wrap {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    transform: none !important;
  }

  .logo-text {
    font-size: 18px !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  .logo-tagline {
    margin-top: 3px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  .logo-extra {
    width: 62px !important;
    height: auto !important;
    max-width: 62px !important;
    max-height: 26px !important;
    object-fit: contain !important;
    flex: 0 0 62px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .header-actions {
    flex: 0 0 auto !important;
    gap: 12px !important;
  }
}

@media (max-width: 390px) {
  .header-inner > a {
    max-width: calc(100% - 68px) !important;
  }

  .logo-wrap {
    gap: 6px !important;
  }

  .logo-image {
    width: 62px !important;
    max-width: 62px !important;
    max-height: 25px !important;
    flex-basis: 62px !important;
  }

  .logo-text {
    font-size: 16px !important;
    letter-spacing: 0.01em !important;
  }

  .logo-tagline {
    font-size: 9px !important;
  }

  .logo-extra {
    width: 55px !important;
    max-width: 55px !important;
    max-height: 23px !important;
    flex-basis: 55px !important;
  }

  .header-actions {
    gap: 10px !important;
  }
}


/* =========================================================
   Factory mobile second-logo scale correction 2026-05-02
   User feedback: the second logo looked too small on mobile.
   Keep all original image files; only restore a factory-like
   wider, height-proportional `.logo-extra` rendering.
   ========================================================= */
@media (max-width: 768px) {
  .logo-wrap {
    gap: 8px !important;
    align-items: center !important;
  }

  .logo-extra {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: auto !important;
    max-height: 30px !important;
    object-fit: contain !important;
    object-position: center !important;
    flex: 0 0 82px !important;
    margin-left: 2px !important;
    margin-right: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 390px) {
  .logo-wrap {
    gap: 7px !important;
  }

  .logo-extra {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    max-height: 28px !important;
    flex-basis: 76px !important;
  }
}

@media (max-width: 360px) {
  .logo-extra {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    max-height: 26px !important;
    flex-basis: 70px !important;
  }
}


/* =========================================================
   User requested corrections 2026-05-02
   Scope: product search placement, apply-filter button, and mobile second-logo scale.
   ========================================================= */
.product-search {
  width: 100%;
}

.product-search-mobile {
  display: none;
}

.sub-category-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 20px 0;
}

.sub-category-row .sub-categories {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.product-search-desktop {
  flex: 0 0 auto;
  max-width: 400px;
  align-self: flex-end;
}

.product-search-input-wrap {
  position: relative;
  width: 100%;
}

.product-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #999999;
  pointer-events: none;
}

.product-search-input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 44px;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  line-height: 42px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-search-input::placeholder {
  color: #aaaaaa;
}

.product-search-input:focus {
  outline: none;
  border-color: #f5c21b;
  box-shadow: 0 0 0 3px rgba(245, 194, 27, 0.14);
}

.product-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #d7d7d7;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.product-search.has-value .product-search-clear {
  display: flex;
}

.filter-actions .btn-apply {
  padding: 8px 14px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #ffffff;
  color: #444444;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-actions .btn-apply:hover {
  border-color: #f5a623;
  background: #fff8e8;
  color: #d99700;
}

@media (max-width: 768px) {
  .product-search-desktop {
    display: none !important;
  }

  .product-search-mobile {
    display: block !important;
    padding: 18px 26px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
  }

  .product-search-input {
    height: 46px;
    line-height: 46px;
    border-radius: 23px;
    font-size: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  .product-search-icon {
    left: 18px;
    width: 19px;
    height: 19px;
  }

  .sub-category-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0;
  }

  .sub-category-row .sub-categories {
    flex: 1 1 auto;
    padding: 20px 26px 16px;
  }

  .product-search-desktop {
    flex: 0 0 auto;
    max-width: none;
  }

  .mobile-sub-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0 16px;
  }

  .mobile-sub-row .sub-categories {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 26px 0 0;
  }

  .mobile-sub-row .product-search-desktop {
    flex: 0 0 180px;
  }

  .filter-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-actions .btn-apply {
    display: none;
  }

  .logo-extra {
    height: 28px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: 28px !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 390px) {
  .product-search-mobile {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sub-category-row .sub-categories {
    padding-left: 18px;
    padding-right: 18px;
  }

  .logo-extra {
    height: 25px !important;
    width: auto !important;
    max-height: 25px !important;
  }
}


/* =========================================================
   3-column × 3-row layout patch (9 items per page)
   Overrides all previous desktop grid definitions to enforce
   3 columns per row and 9 cards per page on desktop.
   ========================================================= */
@media (min-width: 769px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}


/* =========================================================
   Product card info panel redesign
   New layout: tag + name + 4 icon-param rows + detail button
   ========================================================= */

/* 参数列表容器 */
.product-params {
  list-style: none;
  margin: 10px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
}

/* 每行参数 */
.pinfo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  padding: 4px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.pinfo-row:last-child {
  border-bottom: none;
}

/* 圆形 SVG 图标 */
.pinfo-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

/* 标签文字（灰色） */
.pinfo-label {
  flex: 0 0 auto;
  font-size: 12px;
  color: #888888;
  white-space: nowrap;
}

/* 参数值（深色） */
.pinfo-val {
  font-size: 12px;
  color: #333333;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 查看详细按钮 */
.product-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  margin-top: auto;
  background: #f5a623;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.product-detail-btn:hover {
  background: #e09520;
  color: #000000;
}

/* 桌面端：product-info 改为 flex 列布局，让按钮贴底 */
@media (min-width: 769px) {
  .product-info {
    display: flex;
    flex-direction: column;
    padding: 18px 16px 16px 14px;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
  }

  .product-tag {
    align-self: flex-start;
    margin-bottom: 6px;
  }

  .product-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #111111;
  }

  .product-params {
    flex: 1 1 auto;
    margin: 6px 0 12px;
    gap: 6px;
  }

  .pinfo-label {
    font-size: 11px;
  }

  .pinfo-val {
    font-size: 11px;
  }

  .product-detail-btn {
    height: 34px;
    font-size: 14px;
    border-radius: 3px;
  }
}

/* 移动端：竖排卡片，信息区正常流 */
@media (max-width: 768px) {
  .product-info {
    padding: 10px 0 14px;
  }

  .product-params {
    margin: 8px 0 12px;
    gap: 6px;
  }

  .pinfo-label,
  .pinfo-val {
    font-size: 15px;
  }

  .product-detail-btn {
    height: 38px;
    font-size: 15px;
    border-radius: 4px;
  }
}

/* =========================================================
   Desktop refinement patch — 4 columns, compact cards
   1. product-grid: 4 per row
   2. product-card: stacked layout, smaller overall size
   3. product-image: 6:5 ratio, taller appearance
   4. product-info: compact but readable typography
   5. filter-sidebar: larger, more readable typography
   ========================================================= */
@media (min-width: 769px) {

  /* ---- Grid: 4 per row ---- */
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: unset !important;
    grid-auto-rows: auto !important;
    align-content: start !important;
    align-items: stretch !important;
    flex: unset !important;
    min-height: 0 !important;
    gap: 14px !important;
  }

  /* ---- Card: flex column, compact ---- */
  .product-card:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    border-radius: 6px !important;
  }

  /* ---- Image area: 6:5 ratio, taller (no max-height cap) ---- */
  .product-image {
    aspect-ratio: 6 / 5 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-shrink: 0 !important;
    padding: 14px !important;
    background: #f8f8f8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* ---- Product info: compact padding, clean typography ---- */
  .product-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 12px 12px 10px !important;
    box-sizing: border-box !important;
  }

  .product-info .product-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 5px !important;
    color: #111111 !important;
  }

  .product-info .product-tag {
    font-size: 14px !important;
    padding: 2px 8px !important;
    margin-bottom: 6px !important;
  }

  .product-info .pinfo-label {
    font-size: 14px !important;
  }

  .product-info .pinfo-val {
    font-size: 14px !important;
    color: #222222 !important;
  }

  .product-info .pinfo-icon {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
  }

  .product-info .product-params {
    gap: 4px !important;
    margin: 5px 0 8px !important;
  }

  .product-info .product-detail-btn {
    height: 30px !important;
    font-size: 14px !important;
    border-radius: 3px !important;
  }

  /* ---- Filter sidebar: larger, more readable typography ---- */
  .filter-sidebar .filter-group h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin-bottom: 14px !important;
  }

  .filter-sidebar .filter-options label {
    font-size: 14px !important;
    color: #333333 !important;
    gap: 9px !important;
  }

  .filter-sidebar .filter-options input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
  }

  .filter-sidebar .more-btn {
    font-size: 13px !important;
    margin-top: 10px !important;
  }

  .filter-sidebar .btn-reset,
  .filter-sidebar .btn-apply {
    font-size: 14px !important;
    height: 36px !important;
  }
}


/* =========================================================
   Mobile bug-fix patch — 7 issues
   1. filter-sidebar dropdown (h3 click toggle)
   2. viscosity / grade filter boxes alignment
   3. product-detail-btn always at card bottom
   4. sort-select overflow fix
   5. hide filter-actions on mobile
   6. sort-select native dropdown overflow fix (position:relative wrapper)
   7. product-card rows equal height so buttons align at bottom
   ========================================================= */

/* ---- Issue 2: 粘度等级和标准等级的框对齐 ---- */
@media (max-width: 768px) {
  .filter-sidebar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }

  /* Issue 5: 移动端隐藏 filter-actions */
  .filter-actions {
    display: none !important;
  }

  .filter-group {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .filter-group h3 {
    height: 44px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 34px 0 14px !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.03) !important;
    position: relative !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  .filter-group h3::after {
    content: '' !important;
    position: absolute !important;
    right: 15px !important;
    top: 17px !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 1.5px solid #111 !important;
    border-bottom: 1.5px solid #111 !important;
    transform: rotate(45deg) !important;
    transition: transform 0.2s ease !important;
  }
}

/* ---- Issue 1: filter-sidebar 移动端下拉展开 ---- */
@media (max-width: 768px) {
  .filter-options {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 200 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12) !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .filter-group.mobile-open .filter-options {
    display: flex !important;
  }

  .filter-group.mobile-open .filter-options .visible-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .filter-group.mobile-open .filter-options .more-options {
    display: none !important;
  }

  .filter-group.mobile-open .filter-options.expanded .more-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-height: none !important;
    opacity: 1 !important;
  }

  .filter-group.mobile-open .filter-options label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
  }

  .filter-group.mobile-open .filter-options input[type="checkbox"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #f5a623 !important;
  }

  .filter-group.mobile-open h3::after {
    transform: rotate(-135deg) !important;
    top: 22px !important;
  }

  .filter-group.mobile-open .more-btn {
    display: inline-flex !important;
    font-size: 13px !important;
    color: #888 !important;
    margin-top: 4px !important;
  }
}

/* ---- Issue 3 & 7: 产品卡片左右底部对齐 + 按鈕始终在底部 ---- */
@media (max-width: 768px) {
  /* 产品网格：每行两列，各列等高，卡片拉伸充满整行高度 */
  .product-grid {
    align-items: stretch !important;
  }

  /* 卡片本身：flex 列布局，充满空间 */
  .product-card:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  /* 图片区域不拉伸 */
  .product-image {
    flex-shrink: 0 !important;
  }

  /* 信息区域充满剩余空间 */
  .product-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 10px 0 14px !important;
    box-sizing: border-box !important;
  }

  /* 参数列表充满剩余空间，把按鈕推到底部 */
  .product-params {
    flex: 1 1 auto !important;
    margin: 8px 0 12px !important;
  }

  /* 按鈕不收缩，始终在底部 */
  .product-detail-btn {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
}

/* ---- Issue 4 & 6: sort-select 排序框不溢出，且原生下拉不破屏 ---- */
@media (max-width: 768px) {
  .products-topbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
    overflow: visible !important;
  }

  /* 包裹一层 relative 容器，使原生下拉列表在容器内展开 */
  .sort-select-wrap {
    position: relative !important;
    width: 100% !important;
  }

  .sort-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 44px !important;
    padding: 0 34px 0 14px !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    font-size: 14px !important;
    color: #222 !important;
    font-weight: 600 !important;
    /* 防止原生下拉列表被父元素 overflow:hidden 裁剪 */
    position: relative !important;
    z-index: 10 !important;
  }

  .product-count {
    font-size: 14px !important;
    color: #777 !important;
  }
}

/* ---- 自定义排序下拉组件（移动端） ---- */
/* 桌面端：隐藏自定义下拉，显示原生 select */
.sort-select--custom {
  display: none;
}

@media (max-width: 768px) {
  /* 移动端：隐藏原生 select，显示自定义下拉 */
  .sort-select--native {
    display: none !important;
  }

  .sort-select--custom {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    z-index: 50 !important;
  }

  .sort-custom-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  .sort-custom-arrow {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 1.5px solid #111 !important;
    border-bottom: 1.5px solid #111 !important;
    transform: rotate(45deg) !important;
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
    margin-top: -4px !important;
  }

  .sort-select--custom.open .sort-custom-arrow {
    transform: rotate(-135deg) !important;
    margin-top: 4px !important;
  }

  .sort-custom-dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.14) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    overflow: hidden !important;
  }

  .sort-select--custom.open .sort-custom-dropdown {
    display: block !important;
  }

  .sort-custom-option {
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
  }

  .sort-custom-option:active,
  .sort-custom-option:hover {
    background: #f9f3e8 !important;
    color: #f5a623 !important;
  }

  .sort-custom-option--active {
    font-weight: 700 !important;
    color: #f5a623 !important;
  }
}


/* =========================================================
   User requested corrections 2026-05-03
   1. Desktop: sub-categories wraps into two rows
   2. Mobile: right-arrow fade hint on sub-categories scroll area
   ========================================================= */

/* ---- 1. 电脑端：sub-categories 允许换行（分两行显示） ---- */
@media (min-width: 769px) {
  .sub-categories {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    overflow-x: visible !important;
  }

  .sub-category-row .sub-categories {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }
}

/* ---- 2. 移动端：sub-categories 右侧渐变 + 箭头提示 ---- */
/*
   原理：
   - .sub-categories 本身是 overflow-x: auto 的横向滚动容器
   - 在其外层父容器（.mobile-sub-row / .sub-category-row）上设置
     position: relative + overflow: hidden，
     再用 ::after 伪元素做右侧渐变遮罩（pointer-events:none 不阻断滚动），
     用 ::before 伪元素做箭头图标
   - 注意：父容器本身是 flex，伪元素默认成为 flex 子项；
     通过 position:absolute 脱离文档流，配合父容器 position:relative 实现覆盖
*/
@media (max-width: 768px) {
  /* 父容器：相对定位 + 裁剪溢出（不影响内部横向滚动，只裁剪伪元素） */
  .mobile-sub-row {
    position: relative;
    overflow: hidden;
  }

  /* 右侧渐变遮罩（绝对定位，不占 flex 空间） */
  .mobile-sub-row::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.88) 50%,
      rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 4;
  }

  /* 右侧箭头图标（绝对定位，chevron 样式） */
  .mobile-sub-row::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #aaaaaa;
    border-top: 2px solid #aaaaaa;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    z-index: 5;
  }

  /* 当用户滚动到末尾时隐藏提示（JS 控制，通过添加 .scrolled-end 类） */
  .mobile-sub-row.scrolled-end::after,
  .mobile-sub-row.scrolled-end::before {
    opacity: 0;
    transition: opacity 0.2s ease;
  }
}
