/*
Theme Name: 利森贸易 Lisen Industrial
Theme URI: https://cn.lisenxm.com
Author: 厦门利森贸易
Author URI: https://cn.lisenxm.com
Description: 利森贸易中文官网主题 — 工业自动化备件 B2B，兼容 WooCommerce + Elementor。深蓝+强调橙工业风格，响应式设计。
Version: 1.4.4
License: GPL-2.0-or-later
Text Domain: lisen-theme
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
WooCommerce: 兼容 WooCommerce 8.x
Elementor: 兼容 Elementor 3.x
*/

/* ============== CSS 变量 ============== */
:root {
  --color-primary: #1A3A5C;
  --color-primary-light: #2A5A8C;
  --color-primary-dark: #0F2A4A;
  --color-accent: #2563EB;
  --color-accent-light: #3B82F6;
  --color-accent-dark: #1D4ED8;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F7FA;
  --color-bg-dark: #1A3A5C;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-border: #E5E7EB;
  --color-success: #28A745;
  --color-warning: #FFC107;
  --color-danger: #DC3545;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* === 顶部深蓝通栏 (左/中/右三段) === */
.top-bar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
  width: 100%;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.top-bar-left span,
.top-bar-right a {
  margin-right: 18px;
}
.top-bar-center {
  flex-shrink: 0;
}
.top-bar a {
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}
.top-bar a:hover { color: var(--color-accent-light); }

/* === 主导航整体 === */
.header {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  width: 100%;
}

/* ---- Row 1: Logo + 搜索 + 询价 ---- */
.header-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 0;
}
/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 44px; width: auto; display: block; }
.logo-link { display: flex; align-items: center; }
.logo-icon {
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  border-radius: var(--radius-md);
}
.logo-text h1 {
  font-size: 18px; font-weight: 700;
  color: var(--color-primary); margin: 0;
  white-space: nowrap;
}
.logo-text p {
  font-size: 12px; color: var(--color-text-light); margin: 0;
}

/* ---- Row 2: 导航菜单独立行 ---- */
.header-row-nav {
  background: #fff;
}
/* 导航菜单 */
.nav-main {
  max-width: 1280px;
  margin: 0 auto;
  padding-right: 24px;
}
.nav-main > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}
.nav-main > ul > li {
  margin: 0; padding: 0;
  list-style: none;
  position: relative;
}
.nav-main > ul > li > a {
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #555;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}
/* 第一个菜单项左对齐 */
.nav-main > ul > li:first-child > a {
  padding-left: 0;
}
.nav-main > ul > li > a:hover {
  color: var(--color-primary);
}
/* 选中项 — 底部蓝色条 + 加粗 */
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a {
  color: var(--color-primary);
  font-weight: 600;
}
.nav-main .current-menu-item > a::after,
.nav-main .current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px 3px 0 0;
}
/* 第一个菜单项选中时的蓝色条左对齐 */
.nav-main > ul > li:first-child.current-menu-item > a::after,
.nav-main > ul > li:first-child.current_page_item > a::after {
  left: 0;
}

/* ---- 子菜单（下拉） ---- */
.nav-main .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
  padding: 6px 0;
}
.nav-main > ul > li:hover > .sub-menu {
  display: block;
}
.nav-main .sub-menu li {
  margin: 0; padding: 0;
  list-style: none;
}
.nav-main .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-main .sub-menu a:hover {
  background: #f5f7fa;
  color: var(--color-primary);
}

/* 询价按钮 */
.header-quote-btn {
  flex-shrink: 0;
}

/* 汉堡菜单按钮 — PC 端隐藏 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
/* 汉堡按钮激活态 — 变为 X */
.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- 搜索栏（内联于第一行） ---- */
.search-bar-main {
  flex: 0 1 700px;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--color-primary);
  border-radius: 40px;
  overflow: hidden;
  height: 46px;
  background: #fff;
}
.search-bar-btn {
  flex-shrink: 0;
  width: 48px;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 40px 40px 0;
  transition: background 0.2s;
}
.search-bar-btn:hover {
  background: #0d2b4e;
}
.search-bar-select-wrap {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0 10px;
  border-right: 1px solid #d0d5dd;
}
.search-bar-select {
  border: none;
  font-size: 14px;
  color: #333;
  padding: 6px 28px 6px 8px;
  width: 108px;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.search-bar-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  pointer-events: none;
}
.search-bar-input {
  flex: 1;
  border: none;
  font-size: 15px;
  padding: 0 20px;
  outline: none;
  min-width: 0;
  color: #333;
  background: transparent;
}
.search-bar-input::placeholder {
  color: #aaa;
  font-size: 14px;
}
/* === 按钮 === */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-light); color: white; }
.btn-accent { background: var(--color-accent); color: white; }
.btn-accent:hover { background: var(--color-accent-light); color: white; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: white; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* === Hero 区 === */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.05'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; }
.hero-stats {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}
.hero-stats-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hero-stats-item:last-child { border-bottom: none; }
.hero-stats-num { font-size: 32px; font-weight: 700; color: var(--color-accent); }
.hero-stats-label { font-size: 14px; opacity: 0.85; }

/* === 通用区块 === */
section { padding: 64px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-dark { background: var(--color-primary); color: white; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--color-text-light); }
.section-dark .section-header p { color: rgba(255,255,255,0.8); }

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* === 卡片 === */
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-text { color: var(--color-text-light); font-size: 14px; }

/* === 网格 === */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* === 品牌矩阵 === */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brand-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.brand-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.brand-logo {
  height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.brand-name { font-size: 13px; color: var(--color-text-light); }

/* === 产品卡片 / WooCommerce 商品 === */
.product-card,
.woocommerce ul.products li.product {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover,
.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.product-image {
  width: 100%;
  height: 200px;
  max-height: 200px;
  background: linear-gradient(135deg, #F5F7FA 0%, #E5E7EB 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.product-image img,
.woocommerce ul.products li.product img,
.product-image a img {
  width: 100% !important;
  height: 200px !important;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}
.badge-stock { background: var(--color-success); }
.badge-preorder { background: var(--color-warning); }
.badge-discontinued { background: #94a3b8; }
.product-image-placeholder { font-size: 48px; color: var(--color-text-light); }
.product-info,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 16px;
  display: flex; flex-direction: column; flex: 1;
  font-size: 14px;
}
.product-brand { font-size: 12px; color: var(--color-text-light); margin-bottom: 4px; }
.product-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.product-model { font-size: 15px; font-weight: 700; color: #1a3a5c; margin-bottom: 12px; line-height: 1.4; }
.product-model a { color: #1a3a5c; text-decoration: none; }
.product-model a:hover { color: var(--color-accent); }
.product-image-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-price-row {
  display: flex; align-items: center; gap: 6px;
  padding-top: 12px; border-top: 1px solid var(--color-border);
  margin-top: auto; flex-wrap: nowrap;
}
.product-price-label { font-size: 12px; color: var(--color-text-light); white-space: nowrap; }
.product-price-row .price { white-space: nowrap; }
.product-price {
  font-size: 18px; font-weight: 700; color: #e60012;
}
.product-price-cny { font-size: 12px; color: var(--color-text-light); margin-left: 2px; }
.product-actions { display: flex; gap: 8px; margin-top: 12px; }
.product-actions .btn { flex: 1; padding: 8px; font-size: 13px; }

/* === 产品中心页面布局 === */
.products-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e4d7a 50%, #2d6ba0 100%);
  color: #fff;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.products-hero::before {
  content: ''; position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.products-hero::after {
  content: ''; position: absolute;
  right: 100px; bottom: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.products-hero .container { position: relative; z-index: 1; text-align: center; }
.products-hero p { margin-left: auto; margin-right: auto; }
.products-hero-stats { justify-content: center; }
.products-hero h1 {
  font-size: 30px; font-weight: 700; margin: 0 0 8px;
}
.products-hero p {
  font-size: 15px; opacity: 0.85; max-width: 600px; margin: 0 auto;
}
.products-hero-stats {
  display: flex; gap: 40px; margin-top: 24px;
}
.hero-stat-item { text-align: center; }
.hero-stat-item strong {
  display: block; font-size: 28px; font-weight: 700; color: var(--color-accent-light);
}
.hero-stat-item span {
  display: block; font-size: 13px; opacity: 0.75; margin-top: 4px;
}
.products-page-section { padding: 32px 0; }
.products-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* === 侧边栏 === */
.products-sidebar {
  position: sticky; top: 140px;
}
.filter-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.filter-card-header {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-card-body { padding: 12px 18px; }
.filter-icon { font-size: 15px; }

/* 自定义复选框 */
.filter-checkbox {
  display: flex; align-items: center;
  padding: 7px 0;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}
.filter-checkbox:hover { color: var(--color-primary); }
.filter-checkbox input[type="checkbox"] { display: none; }
.check-mark {
  width: 16px; height: 16px;
  border: 2px solid #ccc;
  border-radius: 3px;
  margin-right: 10px;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}
.filter-checkbox input:checked + .check-mark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.filter-checkbox input:checked + .check-mark::after {
  content: '✓';
  position: absolute;
  top: -1px; left: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.filter-count {
  margin-left: auto;
  color: var(--color-text-light);
  font-size: 12px;
  background: var(--color-bg-soft);
  padding: 0 8px;
  border-radius: 10px;
}

/* 价格输入 */
.price-inputs {
  display: flex; gap: 8px; align-items: center; margin-bottom: 12px;
}
.price-inputs input {
  width: 70px; flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px; text-align: center;
  outline: none;
  transition: var(--transition);
}
.price-inputs input:focus { border-color: var(--color-primary); }
.price-inputs span { color: var(--color-text-light); font-size: 13px; }
.btn-filter {
  width: 100%; padding: 9px;
  background: var(--color-primary);
  color: #fff; border: none;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-filter:hover { background: var(--color-primary-light); }
.btn-filter-reset {
  width: 100%; padding: 7px; margin-top: 8px;
  background: none; color: var(--color-text-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer;
  transition: var(--transition);
}
.btn-filter-reset:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* === 痛点文章 === */
.pain-card {
  background: white;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pain-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pain-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
  flex-grow: 1;
}
.pain-card-solution {
  background: var(--color-bg-soft);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-primary);
  border-left: 3px solid var(--color-success);
  margin-top: auto;
}

/* === 工具栏 === */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.toolbar-count {
  font-size: 14px; color: var(--color-text-light);
}
.toolbar-count strong { color: var(--color-primary); font-size: 18px; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.toolbar-sort { display: flex; gap: 6px; }
.sort-btn {
  padding: 7px 16px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.sort-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.sort-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.sort-arrow { font-size: 11px; }

/* === 产品网格 === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* === 产品卡片增强 === */
.product-card {
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-color: #c5d0db;
}
.product-card a:hover { color: #1d4ed8 !important; }

/* === 分页 === */
.products-pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 36px; padding-bottom: 40px;
}
.products-pagination .page-numbers {
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}
.products-pagination .page-numbers:hover {
  border-color: var(--color-primary); color: var(--color-primary);
}
.products-pagination .page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* === 空状态 === */
.products-empty {
  text-align: center; padding: 80px 0; color: var(--color-text-light);
}
.products-empty-icon { font-size: 48px; margin-bottom: 16px; }
.products-empty p { color: var(--color-text-light); }

/* === 响应式 === */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .products-page-layout { grid-template-columns: 1fr; }
  .products-sidebar { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-toolbar { flex-direction: column; align-items: flex-start; }
}

/* === 表单 === */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: white;
  transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}
.form-row { margin-bottom: 20px; }

/* === 页脚 === */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 32px;
  overflow: visible;
}
.footer-col h4 {
  color: white; font-size: 14px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 8px; font-size: 13px; }
.footer-col { overflow: visible; }
.footer-col a:hover { color: var(--color-accent-light); }

/* 品牌列表 — 两列对齐 */
.footer-brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-brand-list li {
  margin-bottom: 6px;
  font-size: 13px;
}
.footer-brand-list a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-brand-list a:hover {
  color: var(--color-accent-light);
}

/* 社交二维码 */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-item {
  position: relative;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0;
}
.social-btn:hover {
  color: #fff;
  filter: brightness(1.15);
}
.social-wechat { background: #07C160; border-color: #07C160; color: #fff; }
.social-qq { background: #12B7F5; border-color: #12B7F5; color: #fff; }
.social-tiktok { background: #000; border-color: #555; color: #fff; }

.social-qr-popup {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  padding: 10px 10px 6px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  text-align: center;
  z-index: 999;
  white-space: nowrap;
  min-width: 180px;
}
.social-qr-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
}
.social-qr-popup img {
  display: block;
  border-radius: 6px;
  width: 160px;
  height: 160px;
  object-fit: contain;
}
.social-qr-popup span {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 5px;
  letter-spacing: 0.5px;
}
.social-item:hover .social-qr-popup {
  opacity: 1;
  visibility: visible;
}
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.footer-cert {
  display: flex; gap: 16px;
}
.footer-cert span {
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
}

/* ============== 浮动侧边联系工具栏 v1.3.38 ============== */
.float-actions {
  position: fixed; right: 40px; bottom: 120px;
  display: flex; flex-direction: column; gap: 16px;
  z-index: 999;
}

/* -- 单个项 -- */
.float-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative;
  cursor: pointer;
}
/* 向左扩展 hover 桥梁（桥接图标与卡片之间约8px间隙） */
.float-item::after {
  content: '';
  position: absolute;
  top: -4px; bottom: -4px;
  right: 100%;
  width: 20px;
  z-index: 0;
  pointer-events: auto;
}

/* -- 图标区域（56px 白色圆形） -- */
.float-icon {
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; z-index: 2;
}
.float-icon svg {
  width: 24px; height: 24px;
}
.float-item:hover .float-icon,
.float-item.is-hover .float-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

/* -- 标签（毛玻璃半透明） -- */
.float-label {
  font-size: 11px; font-weight: 700; color: rgba(0,0,0,0.6);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2px 10px; border-radius: 10px;
  white-space: nowrap;
  position: relative; z-index: 2;
}

/* =========================================
   弹出卡片（左侧弹出）
   ========================================= */
.float-card {
  position: absolute; right: 68px; bottom: 0; top: auto;
  transform: scale(0.92);
  width: 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 10;
}
.float-item:hover .float-card,
.float-item.is-hover .float-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

/* 同一时间只显示一个卡片 */
.float-actions:hover .float-item:not(:hover) .float-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* -- 向右的三角形箭头 -- */
.float-card-arrow {
  position: absolute; right: -8px; top: auto; bottom: 30px;
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 9px solid #fff;
}

/* -- 卡片内边距 -- */
.float-card-inner {
  padding: 24px;
}

/* -- 卡片标题 -- */
.float-card-title {
  font-size: 18px; font-weight: 700; color: #1a3a5c;
  margin: 0 0 12px;
}

/* -- 联系方式（号码/邮箱） -- */
.float-card-contact {
  font-size: 22px; font-weight: 700; color: #1a3a5c;
  letter-spacing: 0.5px; margin-bottom: 12px;
  word-break: break-all;
  user-select: text;
  cursor: text;
}

/* -- 强调色徽章 -- */
.float-card-badge {
  display: inline-block;
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 10px;
  margin-bottom: 12px;
}

/* -- 描述文本 -- */
.float-card-desc {
  font-size: 13px; color: #64748b; line-height: 1.6;
  margin: 0 0 16px;
}

/* -- 二维码区域 -- */
.float-card-qr {
  width: 120px; height: 120px;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.float-card-qr img {
  display: block; width: 120px; height: 120px;
  object-fit: contain;
}
.float-card-qr .qr-fallback {
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  background: #f0f0f0; color: #999; font-size: 11px;
  border-radius: 8px; padding: 8px; word-break: break-all;
  text-align: center;
}

/* ============== 移动端适配 ============== */
@media (max-width: 768px) {
  .float-actions {
    right: 12px; bottom: 80px; gap: 12px;
    top: auto; transform: none;
  }
  .float-item {
    padding-left: 0; margin-left: 0;
  }
  .float-item::after {
    top: auto; bottom: 100%;
    right: 0; left: 0;
    width: auto; height: 14px;
  }
  .float-icon {
    width: 48px; height: 48px;
  }
  .float-icon svg {
    width: 20px; height: 20px;
  }
  .float-label {
    font-size: 10px; padding: 2px 8px;
  }
  .float-card {
    top: auto;
    bottom: calc(100% + 10px);
    right: 0;
    left: auto;
    transform: scale(0.92);
    width: 240px;
  }
  .float-item:hover .float-card,
  .float-item.is-hover .float-card {
    transform: scale(1);
  }
  .float-card-arrow {
    top: auto; bottom: -8px;
    right: 24px; left: auto;
    border-top: 9px solid #fff;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: none;
  }
  .float-card-inner {
    padding: 14px;
  }
  .float-card-title {
    font-size: 15px;
  }
  .float-card-contact {
    font-size: 16px;
  }
  .float-card-qr,
  .float-card-qr img {
    width: 80px; height: 80px;
  }
  .float-card-badge {
    font-size: 10px; padding: 2px 8px;
  }
  .float-card-desc {
    font-size: 12px;
  }
}

/* === 面包屑 === */
.breadcrumb {
  background: var(--color-bg-soft);
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-text-light);
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { margin: 0 8px; }

/* === WooCommerce 兼容覆盖 === */
.woocommerce .products ul,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.woocommerce ul.products li.product .price {
  font-size: 18px;
  font-weight: 700;
  color: #e60012;
}
.products-grid .price {
  font-size: 18px;
  font-weight: 700;
  color: #e60012;
}
.products-grid .price del {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 400;
  margin-right: 6px;
}
.products-grid .price ins {
  text-decoration: none;
}
.woocommerce ul.products li.product .button {
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--color-accent-light);
  color: white;
}
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--color-text-light);
}
.woocommerce .woocommerce-breadcrumb a { color: var(--color-primary); }
.woocommerce .woocommerce-ordering select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.woocommerce div.product .product_title {
  font-size: 24px;
  font-weight: 700;
}
.woocommerce div.product p.price {
  font-size: 24px;
  font-weight: 700;
  color: #e60012;
}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--color-primary-light);
  color: white;
}
/* WooCommerce 消息提示 */
.woocommerce-message {
  border-top-color: var(--color-primary);
}
.woocommerce-message::before {
  color: var(--color-primary);
}
.woocommerce-info {
  border-top-color: var(--color-accent);
}
.woocommerce-info::before {
  color: var(--color-accent);
}

/* === WordPress 核心样式覆盖 === */
.wp-block-image img { border-radius: var(--radius-md); }
.entry-content h2 { font-size: 24px; margin: 32px 0 16px; }
.entry-content h3 { font-size: 18px; margin: 24px 0 12px; }
.entry-content p { margin-bottom: 16px; color: var(--color-text-light); }

.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }
.alignwide { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* === WordPress 小工具区域 === */
.widget { margin-bottom: 24px; }
.widget-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.widget ul li { padding: 4px 0; font-size: 13px; }

/* === 搜索突出 === */
.search-results .search-highlight { background: #FFF3CD; padding: 2px 4px; border-radius: 2px; }

/* === 首页内联模块 CSS 类 === */
/* 为什么选择意德维 */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* 关于意德维 */
.about-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-video-wrapper video {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* === 分页 === */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 32px;
}
.pagination .page-numbers {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
}
.pagination .page-numbers.current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.pagination .page-numbers:hover:not(.current) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .hero-content, .grid-3, .grid-4, .grid-6, .brand-grid, .footer-content,
  .woocommerce .products ul,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 768px) {
  /* 单列布局 — Hero + WooCommerce */
  .hero-content,
  .woocommerce .products ul,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
  /* 两列布局 — 通用网格 */
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* 三列布局 — 品牌矩阵 + 六列网格 */
  .grid-6, .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  /* 页脚两列 */
  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  /* 导航 — 小屏换行 */
  .header-row-1 { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .search-bar-main { order: 3; flex-basis: 100%; height: 42px; border-radius: 30px; }
  .search-bar-btn { width: 42px; border-radius: 0 30px 30px 0; }
  .search-bar-input { font-size: 13px; padding: 0 12px; }
  .search-bar-select { font-size: 12px; padding: 4px 22px 4px 6px; }

  /* 汉堡菜单按钮 — 移动端显示 */
  .mobile-menu-toggle { display: flex; }

  /* 全屏覆盖导航 */
  .header-row-nav {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(26, 58, 92, 0.97);
    z-index: 999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .header-row-nav.is-active {
    opacity: 1;
    visibility: visible;
  }
  /* 锁定 body 滚动 */
  body.nav-open { overflow: hidden; }

  /* 覆盖层内的导航菜单 */
  .header-row-nav .nav-main {
    max-width: none;
    padding: 100px 32px 40px;
  }
  .header-row-nav .nav-main > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .header-row-nav .nav-main > ul > li {
    width: 100%;
  }
  .header-row-nav .nav-main > ul > li > a {
    display: block;
    padding: 14px 0;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s;
  }
  .header-row-nav .nav-main > ul > li > a:hover {
    color: #fff;
  }
  .header-row-nav .nav-main .current-menu-item > a,
  .header-row-nav .nav-main .current_page_item > a {
    color: var(--color-accent);
  }
  .header-row-nav .nav-main .current-menu-item > a::after,
  .header-row-nav .nav-main .current_page_item > a::after {
    display: none;
  }
  /* 子菜单在覆盖层中直接展开 */
  .header-row-nav .nav-main .sub-menu {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: auto;
  }
  .header-row-nav .nav-main .sub-menu a {
    color: rgba(255,255,255,0.65);
    padding: 8px 0;
    font-size: 15px;
  }
  .header-row-nav .nav-main .sub-menu a:hover {
    background: transparent;
    color: #fff;
  }

  .top-bar-content { flex-direction: column; gap: 6px; text-align: center; }
  .top-bar-left span { display: block; margin-bottom: 4px; }
  .top-bar-right a { margin: 0 8px; }
  .hero h1 { font-size: 26px; }

  /* 页脚社交 — 移动端换行 */
  .footer-social { justify-content: flex-start; gap: 10px; }
  .social-btn { width: 40px; height: 40px; }
  .social-btn svg { width: 18px; height: 18px; }
  .social-qr-popup { right: -50px; }

  /* 面包屑 — 移动端缩小 */
  .breadcrumb { padding: 10px 0; font-size: 12px; }

  /* 分页 — 移动端缩小 */
  .pagination { gap: 4px; margin-top: 24px; }
  .pagination .page-numbers { padding: 6px 10px; font-size: 13px; }

  /* 产品规格表格 — 移动端横向滚动 */
  .product-specs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .product-specs table { min-width: 600px; }

  /* 产品详情标签页 */
  .tab-btn { padding: 12px 16px; font-size: 13px; }
  .tab-content { padding: 20px 16px; }
  .review-form-wrapper { padding: 16px; }
  .review-item .review-header { flex-direction: column; gap: 4px; }

  /* 产品筛选侧边栏 — 移动端滚动 */
  .products-sidebar { max-height: none; overflow-y: visible; }
  .filter-card { margin-bottom: 12px; }

  /* 首页内联模块响应式 */
  /* 为什么选择意德维 */
  .why-us-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* 关于意德维 */
  .about-us-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .about-video-wrapper video { width: 100%; }
  /* 统计数字 */
  #homeStats > div { flex: 1 1 50%; padding: 10px 16px !important; min-width: 140px; }
  #homeStats > div > div:first-child { font-size: 36px !important; }

  /* ====== v1.3.22 全面移动端适配 ====== */
  /* 全局间距缩减 */
  section { padding: 40px 0; }
  .section-header h2 { font-size: 24px; }
  .section-header { margin-bottom: 32px; }
  .container { padding: 0 16px; }

  /* Hero 区移动端 */
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; margin-bottom: 20px; }
  .hero-stats { padding: 20px; border-radius: var(--radius-md); }
  .hero-stats-num { font-size: 24px; }
  .hero-stats-item { padding: 12px 0; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* 按钮移动端 */
  .btn-lg { padding: 12px 24px; font-size: 15px; }

  /* 痛点卡片移动端 */
  .pain-card { padding: 16px; }
  .pain-card-title { font-size: 15px; }
  .pain-card-text { font-size: 13px; }
  .pain-card-solution { font-size: 12px; padding: 10px; }

  /* 产品中心 Hero 移动端 */
  .products-hero { padding: 32px 0; }
  .products-hero h1 { font-size: 24px; }
  .products-hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat-item strong { font-size: 22px; }

  /* 产品环境实拍移动端 */
  .gallery-track > div { flex: 0 0 280px; }
  @keyframes galleryScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-1440px); }
  }

  /* 页脚底部移动端 */
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-cert { justify-content: center; flex-wrap: wrap; }

  /* 卡片移动端微调 */
  .card { padding: 16px; }

  /* 产品价格移动端 */
  .product-price { font-size: 16px; }

  /* 产品规格表格 — 移动端横向滚动增强 */
  .product-specs table { min-width: 500px; }

  /* 轮播导航箭头触控优化 */
  .banner-arrow { width: 40px; height: 40px; }
}

/* === Elementor 兼容 === */
.elementor-widget-container .card { margin: 0; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1280px; }

/* ====== 首页轮播 ====== */
.banner-slider{position:relative;width:100%;max-width:100vw;height:600px;overflow:hidden;}
.banner-slides{display:flex;width:100%;height:100%;transition:transform 0.6s ease;flex-wrap:nowrap;}
.banner-slide{min-width:100%;height:100%;background-size:cover;background-position:center;position:relative;}
.banner-slide .overlay{position:absolute;inset:0;background:rgba(0,0,0,0.55);display:flex;align-items:center;}
.banner-slide .content{max-width:1200px;margin:0 auto;padding:0 40px;color:#fff;}
.banner-dots{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);display:flex;gap:10px;z-index:10;}
.banner-dot{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,0.5);cursor:pointer;border:none;transition:all 0.3s;padding:0;}
.banner-dot.active{background:#fff;width:32px;border-radius:6px;}
.banner-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:10;background:rgba(255,255,255,0.2);color:#fff;border:none;width:44px;height:44px;border-radius:50%;cursor:pointer;font-size:20px;transition:background 0.3s;display:flex;align-items:center;justify-content:center;}
.banner-arrow:hover{background:rgba(255,255,255,0.4);}
.banner-arrow.prev{left:24px;}
.banner-arrow.next{right:24px;}
@media(max-width:768px){.banner-slider{height:320px;}.banner-slide .content{padding:0 20px;}.banner-slide .content h2{font-size:20px!important;line-height:1.3;}.banner-slide .content p{font-size:13px!important;}.banner-arrow{width:36px;height:36px;font-size:16px;}.banner-arrow.prev{left:12px;}.banner-arrow.next{right:12px;}.banner-dots{bottom:16px;gap:6px;}.banner-dot{width:8px;height:8px;}.banner-dot.active{width:20px;border-radius:4px;}}
/* ====== 产品中心表格卡片 ====== */
.product-table-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-table-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.product-table-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.product-table-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #2563eb;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.product-table-card:hover::after {
  transform: scaleX(1);
}
.product-table-img {
  padding: 20px;
  text-align: center;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-table-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.product-table-name {
  padding: 0 16px 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a3a5c;
  line-height: 1.4;
}
.product-table-card:hover .product-table-name {
  color: #2563eb;
}
.product-table-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #999;
  padding: 0 16px 20px;
  transition: color 0.2s;
}
.product-table-card:hover .product-table-link {
  color: #2563eb;
}

/* ====== 产品中心横向连续滚动轮播（v1.3.5）====== */
.product-carousel{
  overflow: hidden;
  position: relative;
  /* 左右渐隐遮罩，让滚动更柔和 */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.product-carousel-track{
  display: flex;
  gap: 16px;
  width: max-content;
  animation: productCarouselScroll 40s linear infinite;
}
.product-carousel:hover .product-carousel-track{
  animation-play-state: paused;
}
.product-carousel-card{
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-carousel-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: #2563eb;
}
.product-carousel-img{
  width: 100%;
  height: 180px;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
}
.product-carousel-img img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.product-carousel-name{
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1a3a5c;
  line-height: 1.4;
  min-height: 54px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-carousel-card:hover .product-carousel-name{
  color: #2563eb;
}
.product-carousel-actions{
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  margin-top: auto;
}
.btn-detail, .btn-quote{
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
}
.btn-detail{
  background: #fff;
  color: #2563eb;
  border-color: #2563eb;
}
.btn-detail:hover{
  background: #2563eb;
  color: #fff;
}
.btn-quote{
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.btn-quote:hover{
  background: #1d4ed8;
  border-color: #1d4ed8;
}
@keyframes productCarouselScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (max-width: 768px){
  .product-carousel-card{ flex: 0 0 180px; }
  .product-carousel-img{ height: 120px; padding: 10px; }
  .product-carousel-name{ font-size: 13px; min-height: 50px; padding: 8px 12px 6px; }
  .btn-detail, .btn-quote{ padding: 6px 8px; font-size: 12px; }
  .product-carousel-track{ animation-duration: 25s; }
}

/* 保留旧版 product-card 样式向后兼容 */
.product-card{transition:transform 0.25s ease,box-shadow 0.25s ease;}
.product-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.12)!important;}
.product-card a:hover{color:#1d4ed8!important;}

/* ====== 产品环境实拍滚动 ====== */
.gallery-outer{overflow:hidden!important;}
.gallery-track{display:flex;animation:galleryScroll 30s linear infinite;}
.gallery-track:hover{animation-play-state:paused;}
.gallery-track > div{flex:0 0 290px;transition:transform 0.25s ease,box-shadow 0.25s ease;}
.gallery-track > div:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.12)!important;}
@keyframes galleryScroll{
  from{transform:translateX(0);}
  to{transform:translateX(-3672px);} /* 12张 * (290+16)px */
}

@media (max-width: 768px) {
  .product-table-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* ====== 移动端底部导航栏 ====== */
  /* 隐藏PC端页脚 */
  .footer {
    display: none;
  }

  /* 手机端隐藏顶部信息条 */
  .top-bar {
    display: none !important;
  }
  /* 汉堡菜单移到移动端底部导航栏 */
  .mobile-menu-toggle {
    display: none !important;
  }
  /* 页眉简化：隐藏搜索栏和询价按钮 */
  .search-bar-main,
  .header-quote-btn {
    display: none !important;
  }

  /* 页眉只保留 Logo */
  .header-row-1 {
    padding: 12px 16px;
    justify-content: flex-start;
  }

  /* 给页面底部留出空间（底部导航栏高度 60px） */
  body {
    padding-bottom: 60px;
  }

  /* 底部导航栏容器 */
  .mobile-tab-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }

  /* 单个Tab */
  .mobile-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    text-decoration: none;
    color: #666;
    transition: color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
  }

  /* Tab 图标 */
  .mobile-tab-item svg {
    width: 22px;
    height: 22px;
  }

  /* Tab 文字 */
  .mobile-tab-item span {
    font-size: 12px;
    font-weight: 500;
  }

  /* 激活状态 */
  .mobile-tab-item.active,
  .mobile-tab-item:hover {
    color: var(--color-accent);
  }

  .mobile-tab-item.active svg,
  .mobile-tab-item:hover svg {
    fill: var(--color-accent);
  }

  /* ====== Products 页面移动端优化 ====== */
  /* Hero 横幅优化 */
  .products-hero {
    padding: 32px 0 !important;
  }
  .products-hero h1 {
    font-size: 24px !important;
  }
  .products-hero p {
    font-size: 14px !important;
  }
  .products-hero-stats {
    gap: 20px !important;
    flex-wrap: wrap;
  }
  .hero-stat-item strong {
    font-size: 22px !important;
  }

  /* 产品网格优化 */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* 产品卡片优化 */
  .product-image {
    height: 160px !important;
    max-height: 160px !important;
  }
  .product-image img,
  .woocommerce ul.products li.product img,
  .product-image a img {
    height: 160px !important;
    max-height: 160px !important;
  }
  .product-info,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 12px !important;
    font-size: 13px !important;
  }
  .product-name {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  .product-model {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }
  .product-price {
    font-size: 15px !important;
  }
  .product-actions {
    gap: 6px !important;
    margin-top: 8px !important;
  }
  .product-actions .btn {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  /* 侧边栏筛选优化（折叠式） */
  .products-page-layout {
    display: block !important;
  }
  .products-sidebar {
    position: static !important;
    display: none;
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 16px;
  }
  .products-sidebar.is-active {
    display: block;
  }
  .filter-card {
    margin-bottom: 12px !important;
  }
  .filter-card-header {
    padding: 12px !important;
    font-size: 14px !important;
  }
  .filter-card-body {
    padding: 12px !important;
  }
  .filter-checkbox {
    padding: 6px 0 !important;
    font-size: 13px !important;
  }

  /* 移动端筛选按钮 */
  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
  }
  .mobile-filter-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* 工具栏优化 */
  .products-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  .toolbar-count {
    font-size: 13px !important;
    text-align: center;
  }
  .toolbar-right {
    justify-content: center;
  }
  .toolbar-sort {
    flex-wrap: wrap;
    gap: 6px !important;
  }
  .sort-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* 分页优化 */
  .products-pagination {
    gap: 4px !important;
    margin-top: 24px !important;
    padding-bottom: 80px !important;
  }
  .products-pagination .page-numbers {
    min-width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  /* ====== 搜索结果页面移动端优化 ====== */
  /* 搜索标题优化 */
  .search-results-title {
    font-size: 24px !important;
    text-align: center !important;
  }

  /* 搜索统计信息 */
  .search-results-count {
    font-size: 14px !important;
    text-align: center !important;
  }

  /* 搜索框优化 */
  .search-results-form form {
    flex-direction: column !important;
  }
  .search-results-form input[type="search"] {
    width: 100% !important;
    margin-bottom: 8px !important;
  }
  .search-results-form button {
    width: 100% !important;
  }

  /* 产品结果标题 */
  .search-results-heading {
    font-size: 18px !important;
  }

  /* 产品网格（搜索结果页） */
  .search-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* 文章网格（搜索结果页） */
  .search-posts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* 产品卡片优化（搜索结果页） */
  .search-products-grid .product-card {
    padding: 8px !important;
  }
  .search-products-grid .product-image {
    height: 140px !important;
    max-height: 140px !important;
  }
  .search-products-grid .product-image img {
    height: 140px !important;
    max-height: 140px !important;
  }
  .search-products-grid .product-name {
    font-size: 13px !important;
  }
  .search-products-grid .product-model {
    font-size: 11px !important;
  }
  .search-products-grid .product-price {
    font-size: 15px !important;
  }
  .search-products-grid .product-actions {
    flex-direction: column !important;
    gap: 6px !important;
  }
  .search-products-grid .product-actions .btn {
    width: 100%;
    text-align: center;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* 文章卡片优化（搜索结果页） */
  .search-posts-grid .card {
    padding: 16px !important;
  }
  .search-posts-grid .card-title {
    font-size: 16px !important;
  }
  .search-posts-grid .card-text {
    font-size: 13px !important;
  }

  /* 无结果页面优化 */
  .search-no-results {
    padding: 40px 16px !important;
  }
  .search-no-results h2 {
    font-size: 20px !important;
  }
  .search-no-results p {
    font-size: 14px !important;
  }
  .search-no-results-buttons {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .search-no-results-buttons .btn {
    width: 100%;
    text-align: center;
  }

  /* ====== WooCommerce 搜索结果页面移动端优化 ====== */
  /* 覆盖 archive-product.php 内联样式 */
  .products-page-layout {
    display: block !important;
  }
  .products-sidebar {
    display: none !important;
  }
  /* 产品网格在搜索页已是2列，但需确保 gap 和内边距 */
  .products-page-layout .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ====== 移动端底部搜索卡片（v1.3.48）====== */
.mobile-search-card {
  display: none;
  position: fixed;
  bottom: 72px;
  left: 12px;
  right: 12px;
  z-index: 1090;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.mobile-search-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.mobile-search-card-close {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 32px;
  height: 32px;
  border: none;
  background: #1a3a5c;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
}
.mobile-search-card-close:hover {
  background: #2563eb;
  transform: scale(1.1);
}
.mobile-search-card-close svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.mobile-search-card-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 6px;
  border: 1px solid #e2e8f0;
}

.mobile-search-card-cat {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: #1a3a5c;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231a3a5c"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 16px;
  padding-right: 20px;
}

.mobile-search-card-input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  outline: none;
}
.mobile-search-card-input::placeholder {
  color: #94a3b8;
}

.mobile-search-card-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--color-accent);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.mobile-search-card-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}
.mobile-search-card-btn:active {
  transform: scale(0.95);
}
.mobile-search-card-btn svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

/* ====== About 页面公司风采轮播 ====== */
.company-gallery-wrapper { overflow: hidden; border-radius: 12px; }
.company-gallery-track { display: flex; gap: 16px; animation: companyGalleryScroll 30s linear infinite; }
.company-gallery-track:hover { animation-play-state: paused; }
.company-gallery-item { flex: 0 0 290px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.company-gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.company-gallery-item:hover img { transform: scale(1.05); }
@keyframes companyGalleryScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-accent { background: #2563eb; color: #fff; }
.btn-accent:hover { background: #1d4ed8; color: #fff; }
.btn-outline { background: transparent; color: #2563eb; border-color: #2563eb; }
.btn-outline:hover { background: #2563eb; color: #fff; }

/* ====== About 页面手机端优化 ====== */
@media (max-width: 768px) {
  /* 页面整体 */
  .about-page { padding: 32px 0 !important; }
  .about-page > .container { padding: 0 16px !important; }

  /* 公司介绍 Hero */
  .about-hero { padding: 24px 20px !important; margin-bottom: 32px !important; }
  .about-hero > div { grid-template-columns: 1fr !important; gap: 16px !important; text-align: center !important; }
  .about-hero h1 { font-size: 24px !important; margin-bottom: 12px !important; }
  .about-hero p { font-size: 14px !important; line-height: 1.7 !important; }
  .about-hero-emoji-wrap { display: none !important; }

  /* 核心数据 - 2x2 网格 */
  .about-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; margin-bottom: 32px !important; }
  .about-stats .stat-card { padding: 20px 12px !important; }
  .about-stats .stat-card > div:first-child { font-size: 32px !important; }
  .about-stats .stat-card > div:last-child { font-size: 13px !important; }

  /* 核心优势 - 2列网格 */
  .about-advantages { margin-bottom: 32px !important; }
  .about-advantages > h2 { font-size: 22px !important; margin-bottom: 20px !important; }
  .about-advantages-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .about-advantages .advantage-card { padding: 16px !important; }
  .about-advantages .advantage-card > span { font-size: 28px !important; margin-bottom: 10px !important; }
  .about-advantages .advantage-card h3 { font-size: 15px !important; margin-bottom: 6px !important; }
  .about-advantages .advantage-card p { font-size: 12px !important; line-height: 1.5 !important; }

  /* 发展历程 - 竖向列表 */
  .about-timeline { padding: 24px 16px !important; margin-bottom: 32px !important; }
  .about-timeline > h2 { font-size: 22px !important; margin-bottom: 20px !important; }
  .timeline-grid { flex-direction: column !important; gap: 16px !important; padding-left: 0 !important; align-items: flex-start !important; }
  .timeline-line { display: none !important; }
  .timeline-item { 
    text-align: left !important; 
    display: flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    width: 100% !important;
    position: relative !important;
  }
  .timeline-item > .timeline-year { 
    margin: 0 !important; 
    flex-shrink: 0 !important;
  }
  .timeline-item > h4 { margin: 0 0 2px 0 !important; font-size: 15px !important; }
  .timeline-item > p { margin: 0 !important; font-size: 12px !important; }

  /* 公司风采轮播 */
  .company-gallery-wrapper { margin-bottom: 32px !important; }
  .company-gallery-wrapper > div:first-child { margin-bottom: 16px !important; }
  .company-gallery-wrapper h2 { font-size: 22px !important; }
  .company-gallery-wrapper p { font-size: 13px !important; }
  .company-gallery-item { flex: 0 0 200px !important; }
  .company-gallery-item img { height: 150px !important; }

  /* 联系我们 CTA */
  .about-cta { padding: 24px 20px !important; margin-bottom: 32px !important; }
  .about-cta > h2 { font-size: 22px !important; margin-bottom: 12px !important; }
  .about-cta > p { font-size: 14px !important; margin-bottom: 20px !important; }
  .about-cta-buttons { flex-direction: column !important; gap: 10px !important; }
  .about-cta-buttons .btn { width: 100% !important; padding: 12px 24px !important; }
}

/* ====== About 页面公司简介双栏（v1.4.2 参考布局）====== */
.about-intro-aside img { transition: transform 0.3s ease; }
.about-intro-aside img:hover { transform: scale(1.02); }

@media (max-width: 768px) {
  .about-intro-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .about-intro-aside img { height: 160px !important; }
}

/* ====== 页眉询价按钮兜底样式（防止其它服务器样式表差异导致按钮丢色） ====== */
.header-quote-btn a.btn-accent {
  background: #2563eb !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  white-space: nowrap !important;
}
.header-quote-btn a.btn-accent:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
}
