/**
 * 鼎配汽配 — 钢灰专业企业站主题
 * Auto Parts Supply Chain — Steel Gray Professional Theme
 * 主色：钢灰 #6B7B8D | 深灰 #2D2D2D | 科技蓝 #1A6BB0
 * 字体：Inter (拉丁) + Noto Sans SC (中文) — Google Fonts
 * 纯原生 CSS，无框架依赖
 */


/* ============================================================
   CSS 变量体系（钢灰汽配主题）
   ============================================================ */
:root {
  /* 品牌色 */
  --steel: #6B7B8D;
  --steel-light: #8A9AAA;
  --steel-dark: #4A5A6A;
  --dark: #2D2D2D;
  --dark-bg: #1E1E1E;
  --blue: #1A6BB0;
  --blue-light: #2080CC;
  --blue-dark: #155A90;
  --blue-dim: rgba(26, 107, 176, 0.08);
  --white: #FFFFFF;
  --off-white: #F8F9FA;

  /* 背景 */
  --bg-body: #F5F6F7;
  --bg-section-alt: #EBEDEF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F9FA;
  --bg-dark: #1E1E1E;
  --bg-input: #FFFFFF;

  /* 文字 */
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-muted: #999999;
  --text-on-dark: #CCCCCC;
  --text-on-steel: #FFFFFF;

  /* 边框 */
  --border-light: #E0E3E6;
  --border-card: #E8EAED;
  --border-steel: #C5CCD3;
  --border-blue: rgba(26, 107, 176, 0.25);

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-blue: 0 4px 16px rgba(26, 107, 176, 0.15);

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* 间距 */
  --section-py: 80px;
  --container-max: 1240px;
  --header-h: 72px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-normal: 300ms;
  --dur-slow: 500ms;

  /* 字体 — Inter(拉丁数字) + Noto Sans SC(中文) */
  --font-heading: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-body);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(26, 107, 176, 0.18); color: var(--dark); }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
input:focus, textarea:focus, select:focus { outline: none; }

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-primary); font-weight: 600; line-height: 1.35; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 14px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  background: var(--blue);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   布局容器
   ============================================================ */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-section-alt); }
.section--dark { background: var(--dark-bg); color: var(--text-on-dark); }
.section--dark .section-title { color: var(--white); }
.section--dark .section-subtitle { color: var(--text-on-dark); }

/* ============================================================
   Header 头部 — 钢灰实底 + 深色文字 (13.11 已规避)
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-normal) var(--ease-out);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}
.header__logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--steel), var(--dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}
.header__logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.header__logo-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--dark); letter-spacing: -0.01em; }
.header__logo-sub { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); }

/* 主导航 */
.header__nav { display: flex; align-items: center; gap: 2px; }
.header__nav-link {
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.header__nav-link:hover, .header__nav-link.active { color: var(--blue); background: var(--blue-dim); }

/* 导航下拉 (13.3: z-index 足够高) */
.header__nav-item { position: relative; }
.header__nav-item:hover .header__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.header__dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 180px; padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur-normal) var(--ease-out);
  z-index: 60;
}
.header__dropdown a {
  display: block; padding: 10px 18px;
  font-size: 0.85rem; color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}
.header__dropdown a:hover { color: var(--blue); background: var(--blue-dim); }

/* 头部CTA按钮 */
.header__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px;
  background: var(--blue);
  color: #fff; font-size: 0.85rem; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease-out);
  margin-left: 16px;
}
.header__cta:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-blue); transform: translateY(-1px); }

/* ============================================================
   汉堡菜单 (13.4: 独立于 header 子容器)
   ============================================================ */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  z-index: 110; margin-left: 12px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 1px; transition: all var(--dur-normal) var(--ease-out); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 移动端侧滑菜单 */
.mobile-nav { position: fixed; top: 0; left: 0; bottom: 0; width: 80%; max-width: 340px; background: var(--white); z-index: 120; transform: translateX(-100%); transition: transform var(--dur-normal) var(--ease-out); overflow-y: auto; box-shadow: var(--shadow-lg); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__inner { padding: 24px; padding-top: 80px; }
.mobile-nav__link { display: block; padding: 14px 16px; font-size: 1rem; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--dur-fast); border-bottom: 1px solid var(--border-light); }
.mobile-nav__link:hover { color: var(--blue); background: var(--blue-dim); }
.mobile-nav__sub { padding-left: 16px; display: none; }
.mobile-nav__sub.open { display: block; }
.mobile-nav__sub a { display: block; padding: 10px 16px; font-size: 0.9rem; color: var(--text-muted); border-radius: var(--radius-sm); border-bottom: 1px solid var(--border-light); }
.mobile-nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 115; opacity: 0; pointer-events: none; transition: opacity var(--dur-normal); }
.mobile-nav__overlay.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-sm); border: none;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-blue); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--dark); border: 1px solid var(--border-light); }
.btn--light:hover { border-color: var(--steel); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--steel); border: 1px solid var(--border-steel); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ============================================================
   首页 — Hero Banner (Swiper轮播)
   ============================================================ */
.hero { position: relative; height: 520px; overflow: hidden; background: var(--dark-bg); }
.hero .swiper { height: 100%; }
.hero__slide {
  height: 100%;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(45,45,45,0.65) 0%, rgba(45,45,45,0.3) 50%, rgba(26,107,176,0.15) 100%);
}
.hero__content {
  position: relative; z-index: 3;
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 24px;
}
.hero__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 1rem;
  max-width: 600px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero__subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.85);
  margin-bottom: 2rem; max-width: 500px;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-pagination { display: flex; justify-content: center; gap: 8px; margin-top: -48px; position: relative; z-index: 5; padding-bottom: 24px; }
.hero-pagination .swiper-pagination-bullet { width: 40px; height: 3px; border-radius: 1.5px; background: rgba(255,255,255,0.35); opacity: 1; transition: all var(--dur-normal); }
.hero-pagination .swiper-pagination-bullet-active { width: 56px; background: var(--blue); }

/* ============================================================
   首页 — 数据统计条 (数字滚动)
   ============================================================ */
.stats-bar {
  background: linear-gradient(90deg, var(--dark-bg), var(--dark));
  border-bottom: 3px solid var(--blue);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
}
.stat-item { text-align: center; color: #fff; }
.stat-item__number {
  font-family: var(--font-heading); font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; line-height: 1; margin-bottom: 8px;
}
.stat-item__number .countup { color: var(--blue-light); }
.stat-item__suffix { font-size: 1.25rem; color: var(--blue-light); margin-left: 2px; }
.stat-item__label { font-size: 0.85rem; color: var(--text-on-dark); letter-spacing: 0.04em; }

/* ============================================================
   产品分类卡片 (5列网格)
   ============================================================ */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  transition: all var(--dur-normal) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--steel);
  transition: all var(--dur-normal) var(--ease-out);
}
.cat-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cat-card:hover::before { height: 4px; background: var(--blue); }
.cat-card__icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--steel), var(--dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  transition: transform var(--dur-normal) var(--ease-back);
}
.cat-card:hover .cat-card__icon { transform: scale(1.1) rotate(-3deg); }
.cat-card__name { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.cat-card__count { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   产品卡片 (4列网格)
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out);
}
.product-card:hover { border-color: var(--border-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card__image { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-section-alt); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.product-card:hover .product-card__image img { transform: scale(1.06); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 600;
  background: var(--blue); color: #fff; border-radius: 3px;
}
.product-card__body { padding: 18px; }
.product-card__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.product-card__spec { font-size: 0.78rem; color: var(--text-muted); }
.product-card__spec strong { color: var(--text-secondary); font-family: var(--font-mono); font-weight: 500; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-light); }
.product-card__price { font-size: 1.1rem; font-weight: 700; color: var(--blue); font-family: var(--font-heading); }
.product-card__stock { font-size: 0.78rem; padding: 3px 8px; border-radius: 3px; font-weight: 500; }
.product-card__stock--in { background: #E8F5E9; color: #2E7D32; }
.product-card__stock--out { background: #FFF3E0; color: #E65100; }

/* ============================================================
   品牌Logo墙
   ============================================================ */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.brand-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-normal) var(--ease-out);
  aspect-ratio: 2/1;
  filter: grayscale(100%); opacity: 0.65;
}
.brand-item:hover { border-color: var(--border-blue); filter: grayscale(0%); opacity: 1; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.brand-item img { max-width: 100%; max-height: 60px; object-fit: contain; }
.brand-item__name { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--dark); letter-spacing: 0.02em; text-align: center; line-height: 1.3; }

/* ============================================================
   仓储实景 (Swiper画廊)
   ============================================================ */
.warehouse-swiper { overflow: hidden; border-radius: var(--radius-lg); }
.warehouse-slide { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/7; }
.warehouse-slide img { width: 100%; height: 100%; object-fit: cover; }
.warehouse-slide__info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.warehouse-slide__title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; }

/* ============================================================
   客户案例卡片
   ============================================================ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out);
}
.case-card:hover { border-color: var(--border-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-card__image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.case-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.case-card:hover .case-card__image img { transform: scale(1.05); }
.case-card__body { padding: 20px; }
.case-card__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.case-card__desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   新闻列表 (左图右文)
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  display: flex; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--dur-normal) var(--ease-out);
}
.news-card:hover { border-color: var(--border-blue); box-shadow: var(--shadow-sm); }
.news-card__thumb { width: 120px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-section-alt); }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-card__title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.news-card__desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.news-card__date { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   CTA区域
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark) 100%);
  text-align: center; padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(26,107,176,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(107,123,141,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: #fff; margin-bottom: 1rem; position: relative; }
.cta-section__desc { color: var(--text-on-dark); font-size: 1rem; margin-bottom: 32px; position: relative; }
.cta-section .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative; height: 320px; overflow: hidden;
  background: var(--dark-bg);
}
.inner-banner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.inner-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,0.6) 0%, rgba(30,30,30,0.35) 50%, rgba(30,30,30,0.7) 100%);
}
.inner-banner__content {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
}
.inner-banner__title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.inner-banner__subtitle { font-size: 1rem; color: rgba(255,255,255,0.75); }

/* 面包屑 */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border-light); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  max-width: var(--container-max); margin: 0 auto;
  padding: 12px 24px; font-size: 0.82rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb i { font-size: 0.6rem; color: var(--text-muted); }

/* ============================================================
   内页 — 两栏布局（侧边栏 + 内容）
   ============================================================ */
.page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }

/* 侧边栏 */
.sidebar { flex-shrink: 0; }
.sidebar__title {
  background: linear-gradient(135deg, var(--dark), var(--steel-dark));
  color: #fff; padding: 18px 20px;
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.sidebar__nav { background: var(--white); border: 1px solid var(--border-light); border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md); overflow: hidden; }
.sidebar__nav a {
  display: block; padding: 14px 20px; font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--dur-fast); position: relative;
}
.sidebar__nav a:last-child { border-bottom: none; }
.sidebar__nav a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); opacity: 0; transition: opacity var(--dur-fast); }
.sidebar__nav a:hover, .sidebar__nav a.active { color: var(--blue); background: var(--blue-dim); }
.sidebar__nav a.active::before { opacity: 1; }

/* 列表内容区 */
.list-header { margin-bottom: 32px; }
.list-header h1 { font-size: 1.75rem; color: var(--dark); }
.list-header p { color: var(--text-secondary); }

/* ============================================================
   列表页 — 产品/案例/新闻网格
   ============================================================ */
.list-grid { display: grid; gap: 24px; }
.list-grid--4 { grid-template-columns: repeat(4, 1fr); }
.list-grid--3 { grid-template-columns: repeat(3, 1fr); }
.list-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* 子分类过滤栏 */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding: 16px 0; margin-bottom: 24px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar a {
  display: inline-flex; padding: 8px 18px;
  font-size: 0.84rem; font-weight: 500; color: var(--text-secondary);
  border: 1px solid var(--border-light); border-radius: 100px;
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-bar a:hover, .filter-bar a.active {
  color: var(--blue); border-color: var(--blue); background: var(--blue-dim);
}

/* ============================================================
   产品详情页
   ============================================================ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-detail__gallery { border-radius: var(--radius-md); overflow: hidden; background: var(--bg-section-alt); }
.product-detail__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail__info { display: flex; flex-direction: column; gap: 16px; }
.product-detail__title { font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.product-detail__specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 20px; background: var(--bg-section-alt); border-radius: var(--radius-md);
}
.spec-item { display: flex; flex-direction: column; gap: 2px; }
.spec-item__label { font-size: 0.78rem; color: var(--text-muted); }
.spec-item__value { font-size: 0.95rem; font-weight: 600; color: var(--dark); font-family: var(--font-mono); }

/* Tab切换 */
.detail-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border-light); margin-top: 48px; }
.detail-tab { padding: 12px 24px; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--dur-fast); }
.detail-tab.active, .detail-tab:hover { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { padding: 24px 0; color: var(--text-secondary); line-height: 2; display: none; }
.tab-panel:not(.hidden) { display: block; }
.tab-panel img { border-radius: var(--radius-md); margin: 16px 0; max-width: 100%; }
.tab-panel p { margin-bottom: 12px; }
.tab-panel h2, .tab-panel h3 { color: var(--dark); margin: 24px 0 12px; }

/* 相关产品 */
.related-title { font-size: 1.35rem; font-weight: 700; color: var(--dark); margin: 48px 0 20px; }

/* ============================================================
   新闻详情页
   ============================================================ */
.detail { max-width: 860px; margin: 0 auto; }
.detail__header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.detail__title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; }
.detail__meta-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.85rem; color: var(--text-muted); }
.detail__meta-row i { color: var(--blue); margin-right: 4px; }
.detail__body { color: var(--text-secondary); line-height: 2; font-size: 0.95rem; }
.detail__body img { border-radius: var(--radius-md); margin: 20px 0; max-width: 100%; }
.detail__body p { margin-bottom: 14px; }
.detail__pager { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 0.88rem; color: var(--text-muted); }
.detail__pager a { color: var(--text-secondary); }
.detail__pager a:hover { color: var(--blue); }

/* ============================================================
   品牌代理页
   ============================================================ */
.brand-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.brand-detail-card {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); padding: 28px;
  display: flex; align-items: center; gap: 24px;
  transition: all var(--dur-normal);
}
.brand-detail-card:hover { border-color: var(--border-blue); box-shadow: var(--shadow-sm); }
.brand-detail-card__logo { width: 100px; height: 80px; background: var(--bg-section-alt); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-detail-card__logo img { max-width: 80%; max-height: 60%; object-fit: contain; }
.brand-detail-card__info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.brand-detail-card__info p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   库存查询页
   ============================================================ */
.search-panel { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 32px; margin-bottom: 32px; }
.search-panel__row { display: flex; gap: 12px; flex-wrap: wrap; }
.search-panel__input { flex: 1; min-width: 200px; padding: 12px 16px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-primary); }
.search-panel__input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }

.result-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; }
.result-table th { background: var(--dark); color: #fff; padding: 14px 16px; font-size: 0.85rem; font-weight: 600; text-align: left; }
.result-table td { padding: 12px 16px; font-size: 0.88rem; border-bottom: 1px solid var(--border-light); }
.result-table tr:hover td { background: var(--blue-dim); }
.result-table .oe-code { font-family: var(--font-mono); font-weight: 600; color: var(--blue); }

/* ============================================================
   联系我们
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info__item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border-card); border-radius: var(--radius-md);
  margin-bottom: 12px; transition: all var(--dur-fast);
}
.contact-info__item:hover { border-color: var(--border-blue); }
.contact-info__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--steel), var(--dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; font-size: 1.1rem;
}
.contact-info__label { font-size: 0.8rem; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.contact-info__value { font-size: 0.88rem; color: var(--text-secondary); }
.contact-form-card {
  padding: 32px; background: var(--bg-card);
  border: 1px solid var(--border-card); border-radius: var(--radius-md);
}

/* ============================================================
   表单
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 5px; font-weight: 500; }
.form-group label .required { color: #E53935; }
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg-input); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 0.9rem; transition: all var(--dur-fast) var(--ease-out);
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ============================================================
   搜索页
   ============================================================ */
.search-box { max-width: 640px; margin: 0 auto; }
.search-form-row { display: flex; gap: 10px; }
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-input-wrap input { width: 100%; padding: 14px 20px 14px 44px; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--text-primary); }
.search-input-wrap input:focus { border-color: var(--blue); }
.search-result-item {
  display: flex; gap: 16px; padding: 18px;
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); transition: all var(--dur-fast);
  margin-bottom: 10px;
}
.search-result-item:hover { border-color: var(--border-blue); box-shadow: var(--shadow-sm); }
.search-result-item__thumb { width: 110px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-section-alt); }
.search-result-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-item__info { flex: 1; min-width: 0; }
.search-result-item__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-item__date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.search-result-item__desc { font-size: 0.85rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   分页
   ============================================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 8px;
  font-size: 0.88rem; color: var(--text-secondary);
  border-radius: var(--radius-sm); border: 1px solid var(--border-light);
  background: var(--white); transition: all var(--dur-fast);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
.pagination .disabled { color: var(--text-muted); pointer-events: none; opacity: 0.5; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 12px; display: block; }
.empty-state p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   Footer 底部
   ============================================================ */
.footer { background: var(--dark-bg); color: var(--text-on-dark); }
.footer__top-line { height: 3px; background: linear-gradient(90deg, var(--steel), var(--blue), var(--dark)); }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px; padding: 56px 0 36px;
  max-width: var(--container-max); margin: 0 auto;
  padding-left: 24px; padding-right: 24px;
}
.footer__brand-desc { font-size: 0.85rem; color: var(--text-on-dark); line-height: 1.7; margin: 16px 0; }
.footer__col-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.85rem; color: var(--text-on-dark); transition: color var(--dur-fast); }
.footer__links a:hover { color: var(--blue-light); }
.footer__contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.83rem; color: var(--text-on-dark); margin-bottom: 10px; }
.footer__contact-item i { color: var(--blue-light); margin-top: 3px; flex-shrink: 0; }
.footer__qrcode { width: 120px; height: 120px; background: #fff; border-radius: var(--radius-sm); padding: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #999; }

.footer__social { display: flex; gap: 10px; margin-top: 12px; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--text-on-dark); font-size: 0.9rem; transition: all var(--dur-fast); }
.footer__social a:hover { background: var(--blue); color: #fff; }

/* 友情链接 */
.friend-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px 0; max-width: var(--container-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.friend-links__label { font-size: 0.8rem; color: var(--text-on-dark); flex-shrink: 0; opacity: 0.6; }
.friend-links a { font-size: 0.8rem; color: var(--text-on-dark); opacity: 0.55; transition: all var(--dur-fast); }
.friend-links a:hover { color: var(--blue-light); opacity: 1; }

/* 底部版权 */
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; font-size: 0.78rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px; }
.footer__bottom a { color: rgba(255,255,255,0.4); }
.footer__bottom a:hover { color: var(--blue-light); }

/* ============================================================
   在线客服按钮
   ============================================================ */
.kefu-btn {
  position: fixed; right: 20px; bottom: 120px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--blue); color: #fff;
  border: none; cursor: pointer; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(26, 107, 176, 0.3);
  transition: all var(--dur-normal) var(--ease-back);
  animation: kefuPulse 2.5s ease-in-out infinite;
}
.kefu-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(26, 107, 176, 0.4); }
@keyframes kefuPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(26, 107, 176, 0.3); }
  50% { box-shadow: 0 4px 28px rgba(26, 107, 176, 0.55); }
}

/* 返回顶部 */
.back-top {
  position: fixed; right: 20px; bottom: 60px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border-light);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; cursor: pointer; z-index: 80;
  opacity: 0; pointer-events: none;
  transition: all var(--dur-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============================================================
   动画系统
   ============================================================ */

/* 数字滚动渐变 */
.stat-item__number .countup { animation: countGlow 2s ease-in-out infinite; }
@keyframes countGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(26,107,176,0.1); }
  50% { text-shadow: 0 0 20px rgba(26,107,176,0.3); }
}

/* 卡片入场动画延迟 */
[data-aos].cat-card:nth-child(1) { transition-delay: 0s; }
[data-aos].cat-card:nth-child(2) { transition-delay: 0.05s; }
[data-aos].cat-card:nth-child(3) { transition-delay: 0.1s; }
[data-aos].cat-card:nth-child(4) { transition-delay: 0.15s; }
[data-aos].cat-card:nth-child(5) { transition-delay: 0.2s; }

/* 节标题下划线动画 */
.section-title--underline { position: relative; padding-bottom: 12px; }
.section-title--underline::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 48px; height: 3px; background: var(--blue); border-radius: 1.5px;
  transition: width 0.6s var(--ease-out);
}
.section-title--underline:hover::after { width: 80px; }

/* 产品卡片 hover 规格高亮 */
.product-card__spec strong { transition: color var(--dur-fast); }
.product-card:hover .product-card__spec strong { color: var(--blue); }

/* 表格行hover */
@keyframes rowHighlight {
  0% { background: var(--blue-dim); }
  100% { background: transparent; }
}
.result-table tr.new-row { animation: rowHighlight 1.5s var(--ease-out); }

/* CTA按钮脉冲 */
@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 107, 176, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(26, 107, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 107, 176, 0); }
}
.pulse { animation: btnPulse 2.2s infinite; }

/* 滚动淡入 */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.aos-animate { animation: fadeInUp 0.7s var(--ease-out) both; }

/* 品牌Logo滑动 */
@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   响应式 — 平板 (< 1024px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 56px; }
  html, body { overflow-x: hidden; max-width: 100vw; }

  .header__nav { display: none; }
  .header__cta { display: none; }
  .hamburger { display: flex; }

  .hero__content { text-align: center; }
  .hero__title { text-align: center; max-width: 100%; }
  .hero__subtitle { text-align: center; max-width: 100%; }
  .hero__actions { justify-content: center; }

  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 200px 1fr; gap: 24px; }
  .product-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .brand-detail-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .list-grid--4 { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   响应式 — 手机 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 44px; }
  body { font-size: 14px; }
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* 全局居中修复 */
  .container { padding: 0 16px; }
  .section { overflow-x: hidden; }

  /* Header */
  .header__inner { padding: 0 16px; }
  .header__logo-name { font-size: 0.95rem; }
  .header__logo-sub { font-size: 0.55rem; }
  .header__logo-icon { width: 34px; height: 34px; font-size: 1rem; }

  /* Hero Banner */
  .hero { height: 360px; }
  .hero__content { padding: 0 16px 60px; text-align: center; align-items: center; }
  .hero__title { font-size: 1.4rem; text-align: center; max-width: 100%; }
  .hero__subtitle { font-size: 0.85rem; text-align: center; max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { font-size: 0.82rem; padding: 10px 20px; }
  .hero__overlay { background: linear-gradient(180deg, rgba(45,45,45,0.6) 0%, rgba(45,45,45,0.3) 50%, rgba(30,30,30,0.85) 100%); }

  /* 内页Banner */
  .inner-banner { height: 200px; }
  .inner-banner__content { padding: 0 16px; text-align: center; }
  .inner-banner__title { font-size: 1.4rem; }
  .inner-banner__subtitle { font-size: 0.85rem; }

  /* 面包屑 */
  .breadcrumb { padding: 10px 16px; font-size: 0.78rem; }

  /* Section标题居中 */
  .section-tag { margin-left: auto; margin-right: auto; display: table; }
  .section-title { text-align: center; }
  .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
  .section-title--underline::after { left: 50%; transform: translateX(-50%); }

  /* 统计条 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 28px 0; }
  .stat-item__number { font-size: 1.6rem; }
  .stat-item__label { font-size: 0.75rem; }

  /* 产品分类 */
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 24px 14px; }
  .cat-card__icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 10px; }
  .cat-card__name { font-size: 0.85rem; }

  /* 产品网格 */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__body { padding: 12px; }
  .product-card__title { font-size: 0.85rem; }
  .product-card__specs { gap: 4px 10px; }
  .product-card__spec { font-size: 0.7rem; }
  .product-card__price { font-size: 0.95rem; }
  .product-card__footer { flex-direction: column; gap: 6px; align-items: flex-start; }

  /* 品牌 */
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-item { padding: 18px 12px; }
  .brand-item__name { font-size: 0.85rem; }

  /* 案例 */
  .case-grid { grid-template-columns: 1fr; gap: 16px; }

  /* 新闻 */
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-card { flex-direction: column; padding: 12px; }
  .news-card__thumb { width: 100%; height: 160px; }
  .news-card__title { font-size: 0.9rem; }

  /* 内页布局 */
  .page-layout { grid-template-columns: 1fr; gap: 16px; }
  .sidebar { margin-bottom: 16px; }
  .sidebar__title { font-size: 1rem; padding: 14px 16px; }
  .sidebar__nav a { padding: 12px 16px; font-size: 0.85rem; }

  /* 产品详情 */
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .product-detail__title { font-size: 1.25rem; }
  .product-detail__specs { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
  .spec-item__label { font-size: 0.7rem; }
  .spec-item__value { font-size: 0.85rem; }

  /* Tab */
  .detail-tabs { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
  .detail-tabs::-webkit-scrollbar { display: none; }
  .detail-tab { padding: 10px 16px; font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; }

  /* 分页 */
  .pagination { flex-wrap: wrap; gap: 2px; }
  .pagination a, .pagination span { min-width: 34px; height: 34px; font-size: 0.8rem; }

  /* 搜索 */
  .search-result-item { flex-direction: column; padding: 14px; }
  .search-result-item__thumb { width: 100%; height: 140px; }
  .search-form-row { flex-direction: column; }
  .search-panel { padding: 20px; }
  .search-panel__row { flex-direction: column; }

  /* 表单 */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-form-card { padding: 20px; }
  .brand-detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .brand-detail-card { flex-direction: column; text-align: center; padding: 20px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 24px; padding: 36px 16px; }
  .footer__col-title { margin-bottom: 12px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; padding: 0 16px; }
  .friend-links { padding: 12px 16px; gap: 10px; }

  /* CTA */
  .cta-section { padding: 48px 16px; }
  .cta-section__title { font-size: 1.35rem; }
  .cta-buttons { flex-direction: column; align-items: center; }

  /* 按钮 */
  .btn { font-size: 0.85rem; padding: 10px 22px; }

  /* 列表网格 */
  .list-grid--4, .list-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .list-grid--2 { grid-template-columns: 1fr; gap: 14px; }

  /* 详情 */
  .detail__pager { flex-direction: column; gap: 8px; text-align: center; }
  .detail__title { font-size: 1.3rem; }
  .detail__meta-row { gap: 10px; font-size: 0.78rem; }
  .detail__body { font-size: 0.9rem; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* 询价表单 */
  .contact-info__item { flex-direction: column; align-items: center; text-align: center; }

  /* 浮动按钮 */
  .back-top { right: 8px; bottom: 44px; width: 34px; height: 34px; font-size: 0.75rem; }
  .kefu-btn { right: 8px; bottom: 90px; width: 42px; height: 42px; font-size: 1rem; }

  /* 列表header */
  .list-header h1 { font-size: 1.35rem; }
  .list-header { margin-bottom: 20px; }

  /* 仓储Swiper */
  .warehouse-slide { aspect-ratio: 16/10; }
  .warehouse-slide__info { padding: 14px 16px; }
  .warehouse-slide__title { font-size: 0.95rem; }

  /* 表格 */
  .result-table { font-size: 0.75rem; }
  .result-table th, .result-table td { padding: 8px 10px; }
}

/* ============================================================
   响应式 — 小屏 (< 375px)
   ============================================================ */
@media (max-width: 374px) {
  .container { padding: 0 12px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .brand-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero { height: 320px; }
  .hero__title { font-size: 1.2rem; }
  .product-detail__specs { grid-template-columns: 1fr; }
  .list-grid--4, .list-grid--3 { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   减少动画偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* July 14: mobile layout refinement; keep desktop rules intact. */
@media(max-width:1023px){
 [data-aos]{transform:none!important;opacity:1!important;transition:none!important}
 .mobile-nav{visibility:hidden;pointer-events:none}
 .mobile-nav.open{visibility:visible;pointer-events:auto}
 .header:has(.hamburger.active){z-index:130}
 .mobile-nav{top:72px;bottom:0;height:calc(100dvh - 72px);max-width:340px;width:calc(100vw - 44px)}
 .mobile-nav__inner{padding:16px}
 .mobile-nav__link{padding:12px;min-height:46px;font-size:15px}
 .mobile-nav__sub.open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:4px}
 .mobile-nav__sub a{padding:10px 8px;min-width:0;font-size:13px;min-height:44px}
 .mobile-nav__sub a:first-child{grid-column:1/-1}
}
@media(max-width:767px){
 :root{--section-py:30px;--section-py-sm:26px}
 .section{padding-top:30px;padding-bottom:30px}
 .container{padding-left:16px;padding-right:16px}
 .section>.container>[style*="margin-bottom:48px"],.section>.container>[style*="margin-bottom:40px"]{margin-bottom:20px!important}
 .section>.container>[style*="margin-top:32px"],.section>.container>[style*="margin-top:28px"]{margin-top:18px!important}
 .section-tag{font-size:10px;letter-spacing:.12em;margin-bottom:8px}
 .section-title{font-size:25px;line-height:1.35;margin-bottom:10px}
 .section-subtitle{font-size:13px;line-height:1.65}
 .btn{min-height:44px;padding:11px 16px;font-size:13px;justify-content:center;max-width:100%}
 .hero__title{font-size:27px;line-height:1.4;margin-bottom:12px;text-wrap:balance}
 .hero__subtitle{font-size:13px;line-height:1.75;margin-bottom:20px}
 .hero__actions{gap:10px}
 .hero__actions .btn{font-size:13px;padding:11px 17px;min-height:44px}
 .hero-pagination{position:absolute;left:0;right:0;bottom:18px;width:100%;transform:none;margin:0;padding:0;display:flex;justify-content:center}
 .hero-pagination .swiper-pagination-bullet{width:24px!important}
 .hero-pagination .swiper-pagination-bullet-active{width:36px!important}
 .news-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .news-card{flex-direction:row;gap:12px;padding:12px;min-width:0}
 .news-card__thumb{width:84px;height:96px;flex-shrink:0}
 .news-card__title{font-size:14px;line-height:1.55;display:block;-webkit-line-clamp:unset}
 .news-card__desc{font-size:12px;line-height:1.6}
 .news-card__date{font-size:11px}
 .cta-section{padding:30px 16px}
 .cta-section .container{padding-left:0;padding-right:0}
 .cta-section__title{font-size:23px;line-height:1.45;margin-bottom:12px}
 .cta-section__desc,.cta-section__subtitle{font-size:13px;line-height:1.7;margin-bottom:20px}
 .cta-buttons,.cta-section__actions{flex-direction:row;justify-content:center;gap:10px;flex-wrap:wrap}
 .footer__grid{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:22px 16px;padding:28px 16px}
 .footer__grid>div{min-width:0}
 .footer__grid>div:first-child,.footer__grid>div:nth-child(2){grid-column:1/-1}
 .footer__brand-desc{font-size:12px;line-height:1.8;margin:12px 0}
 .footer__col-title{font-size:14px;margin-bottom:10px}
 .footer__links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 8px}
 .footer__links a{font-size:12px;min-height:40px;display:flex;align-items:center}
 .footer__contact-item{font-size:12px;gap:7px;overflow-wrap:anywhere}
 .footer__qrcode{width:100px;height:100px}
 .footer__social{margin-top:8px}
 .friend-links{gap:8px;font-size:11px;overflow-wrap:anywhere}
 .footer__bottom-inner{font-size:11px;overflow-wrap:anywhere}
 .inner-banner{height:180px;min-height:0}
 .inner-banner__content{padding:65px 16px 16px}
 .inner-banner__title{font-size:24px;overflow-wrap:anywhere}
 .inner-banner__subtitle{font-size:12px;line-height:1.6}
 .breadcrumb{font-size:11px;flex-wrap:wrap;gap:6px}
 .page-layout>*{min-width:0}
 .detail__body,.tab-panel{font-size:14px;line-height:1.85;overflow-wrap:anywhere}
 .detail__body img,.tab-panel img{height:auto!important;max-width:100%}
 .detail__body table,.tab-panel table{display:block;max-width:100%;overflow-x:auto}
 .detail__body [style*="grid-template-columns"],.tab-panel [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important}
 .detail__params{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .detail__param{min-width:0;padding:12px}
 .detail__param-value{font-size:13px;overflow-wrap:anywhere}
 .detail__pager{align-items:stretch;text-align:left;flex-direction:column;gap:12px;margin-top:24px}
 .detail__pager>*{max-width:100%;min-width:0;overflow-wrap:anywhere}
 .detail__title{font-size:23px;line-height:1.5}
 .detail__meta-row{gap:8px;font-size:11px}
 .detail-tabs{flex-wrap:wrap;gap:0;margin-top:24px;margin-bottom:20px}
 .detail-tabs button,.detail-tab{font-size:13px;padding:12px 8px;flex:1;min-width:0;white-space:normal}
 .contact-form-card{padding:18px}
 .contact-grid{gap:22px}
 .contact-grid>*{min-width:0}
 .form-control,form input:not([type=checkbox]):not([type=radio]),form select,form textarea{min-width:0;font-size:16px;max-width:100%}
 form [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
 form [style*="display:flex"]{flex-wrap:wrap}
 .contact-info__item{padding:12px;gap:12px;flex-direction:row;text-align:left;align-items:flex-start}
 .contact-info__value{overflow-wrap:anywhere;font-size:14px}
 .search-result-item{flex-direction:row;gap:12px;padding:12px;min-width:0}
 .search-result-item__thumb{width:76px;height:86px;flex-shrink:0}
 .search-result-item__info{min-width:0}
 .search-result-item__title{font-size:15px}
 .search-result-item__desc{font-size:12px}
 .pagination{flex-wrap:wrap;gap:5px}
 .pagination a,.pagination span{min-width:40px;height:40px}
}
@media(max-width:359px){
 .news-card__thumb{width:66px;height:90px}
 .footer__grid{grid-template-columns:minmax(0,1fr) 96px;gap:18px 12px}
 .footer__qrcode{width:90px;height:90px}
}

@media(max-width:767px){
 .hero{height:360px;min-height:360px}
 .hero__content{position:absolute;inset:72px 0 36px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px 16px;text-align:center}
 .hero__title{font-size:26px}
 .hero__subtitle{font-size:13px}
 .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:22px 0}
 .stat-item__number{font-size:19px;margin-bottom:6px}
 .stat-item__suffix{font-size:12px;margin-left:0}
 .stat-item__label{font-size:10px;letter-spacing:0}
 .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .cat-card{padding:15px 10px;display:grid;grid-template-columns:36px minmax(0,1fr);text-align:left;column-gap:9px;align-items:center}
 .cat-card__icon{width:34px;height:34px;margin:0;grid-row:1/3;font-size:16px}
 .cat-card__name{font-size:14px;margin:0}
 .cat-card__count{font-size:10px;line-height:1.6;overflow-wrap:anywhere}
 .category-grid .cat-card:last-child:nth-child(odd){grid-column:1/-1}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .product-card{min-width:0}
 .product-card__body{padding:11px}
 .product-card__title{font-size:14px;white-space:normal;line-height:1.5;overflow-wrap:anywhere}
 .product-card__specs{display:grid;gap:3px;margin-bottom:8px}
 .product-card__spec{font-size:10px;overflow-wrap:anywhere}
 .product-card__price{font-size:16px}
 .product-card__footer{padding-top:8px;gap:5px}
 .product-card__stock{font-size:10px;padding:2px 5px}
 .product-card__badge{font-size:10px;top:8px;left:8px;padding:3px 6px}
 .brand-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .brand-item{padding:12px 6px;min-height:62px;aspect-ratio:auto;min-width:0}
 .brand-item__name{font-size:12px;overflow-wrap:anywhere}
 .warehouse-slide{aspect-ratio:16/9}
 .warehouse-slide__title{font-size:14px}
 .case-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .case-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:12px}
 .case-card__image{aspect-ratio:auto;height:108px}
 .case-card__body{padding:0;min-width:0}
 .case-card__title{font-size:15px;line-height:1.5;margin-bottom:6px}
 .case-card__desc{font-size:12px;line-height:1.6}
 .sidebar{margin-bottom:0}
 .sidebar__title{font-size:14px;padding:12px}
 .sidebar__nav{display:flex;flex-wrap:wrap;padding:6px}
 .sidebar__nav a{padding:10px;font-size:12px;min-height:40px}
 .product-detail{grid-template-columns:minmax(0,1fr);gap:20px}
 .product-detail>*{min-width:0}
 .product-detail__gallery{max-width:100%}
 .product-detail__gallery img{max-height:340px;object-fit:contain}
 .product-detail__specs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}
 .spec-item__value{overflow-wrap:anywhere;font-size:13px}
 .brand-detail-card{flex-direction:row;text-align:left;padding:14px;gap:12px;min-width:0}
 .brand-detail-card__logo{width:70px;height:60px}
 .brand-detail-card__info{min-width:0}
 .brand-detail-card__info h3{font-size:15px}
 .brand-detail-card__info p{font-size:12px}
 .list-grid--3,.list-grid--4,.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:359px){
 .case-card{grid-template-columns:76px minmax(0,1fr)}
 .product-card__body{padding:9px}
 .product-card__title{font-size:13px}
 .stat-item__number{font-size:17px}
}
