/**
 * 综合家电卖场/电器商城 — 主样式表
 * 设计：白底 + 红色(#D32F2F)品牌色 + 深灰 + 金色点缀
 * 纯白卡片 + 轻阴影 + 小圆角专业感
 * 纯原生 CSS，无框架依赖
 */

/* ============================================================
   字体导入 — Noto Sans SC (Google Fonts CDN)
   中文专用：清晰现代，商业感强，全平台一致渲染
   ============================================================ */


/* ============================================================
   CSS 变量体系
   ============================================================ */
:root {
  /* 主色系 */
  --color-white: #FFFFFF;
  --color-red: #D32F2F;
  --color-red-dark: #B71C1C;
  --color-red-light: #FFEBEE;
  --color-dark: #1A1A1A;
  --color-gray: #333333;
  --color-gray-md: #666666;
  --color-gray-light: #999999;
  --color-gold: #F5A623;
  --color-gold-light: #FFF8E1;

  /* 背景 */
  --bg-body: #F5F5F5;
  --bg-white: #FFFFFF;
  --bg-gray: #FAFAFA;
  --bg-footer: #1A1A1A;

  /* 边框 */
  --border-color: #E8E8E8;
  --border-light: #F0F0F0;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 4px 16px rgba(211, 47, 47, 0.25);

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  /* 间距 */
  --section-py: 80px;
  --container-max: 1200px;
  --header-h: 70px;

  /* 过渡 */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration: 300ms;
  --duration-slow: 500ms;

  /* 字体 */
  --font-system: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Hiragino Sans GB', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::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(--color-gray);
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

a:hover {
  color: var(--color-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ============================================================
   布局系统
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-py) 0;
}

.section--gray {
  background: var(--bg-gray);
}

.section--white {
  background: var(--bg-white);
}

/* 区块标题通用 */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding: 4px 14px;
  background: var(--color-red-light);
  border-radius: 20px;
}

.section-header__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-header__subtitle {
  font-size: 1rem;
  color: var(--color-gray-md);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid 系统 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(211, 47, 47, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-red);
  border: 2px solid var(--color-red);
}

.btn--outline:hover {
  background: var(--color-red);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-red);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  background: var(--color-red-light);
  color: var(--color-red-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray-md);
  border: 1px solid var(--border-color);
}

.btn--ghost:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ============================================================
   Header & 导航
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--color-white);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--duration) var(--ease);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 42px;
  height: 42px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

.header__logo-sub {
  font-size: 0.7rem;
  color: var(--color-gray-light);
  letter-spacing: 0.05em;
}

/* 主导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--color-gray);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease);
  position: relative;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--color-red);
  background: var(--color-red-light);
}

/* 下拉菜单 */
.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;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration) var(--ease);
}

.header__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--color-gray);
  transition: all var(--duration-fast) var(--ease);
}

.header__dropdown a:hover {
  background: var(--color-red-light);
  color: var(--color-red);
}

/* 右侧操作区 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-md);
  transition: all var(--duration-fast) var(--ease);
  font-size: 1.1rem;
}

.header__search-btn:hover {
  background: var(--bg-gray);
  color: var(--color-red);
}

a.header__cta {
  padding: 10px 22px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

a.header__cta:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

/* 汉堡菜单 (独立于 header__actions, 避坑 13.4) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: all var(--duration) var(--ease);
}

.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;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-white);
  z-index: 1050;
  padding: 24px;
  overflow-y: auto;
  transition: right var(--duration) var(--ease);
  box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
}

.mobile-nav__overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  border-bottom: 1px solid var(--border-light);
  transition: color var(--duration-fast) var(--ease);
}

.mobile-nav__link:hover {
  color: var(--color-red);
}

.mobile-nav__sub {
  padding-left: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration) var(--ease);
}

.mobile-nav__sub.open {
  max-height: 500px;
}

.mobile-nav__sub a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--color-gray-md);
  border-bottom: 1px solid var(--border-light);
}

/* ============================================================
   Hero Banner
   ============================================================ */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
}

.hero .swiper,
.hero .swiper-wrapper,
.hero .swiper-slide {
  height: 100%;
}

.hero__slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #1A1A1A;
}

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.55) 0%, rgba(211, 47, 47, 0.3) 100%);
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 700px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__actions .btn--primary {
  background: var(--color-red);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero__actions .btn--outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero__actions .btn--outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* Swiper 分页 */
.hero .swiper-pagination {
  bottom: 28px;
}

.hero .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all var(--duration) var(--ease);
}

.hero .swiper-pagination-bullet-active {
  background: var(--color-red);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   品类导航卡片
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 20px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-red);
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-red-light);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-red-light), #FFCDD2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-red);
  transition: all var(--duration) var(--ease-spring);
}

.category-card:hover .category-card__icon {
  transform: scale(1.1);
  background: var(--color-red);
  color: var(--color-white);
}

.category-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.category-card__count {
  font-size: 0.8rem;
  color: var(--color-gray-light);
}

/* ============================================================
   产品卡片
   ============================================================ */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-gray);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

/* 促销角标 */
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-red);
  border-radius: 3px;
  z-index: 2;
}

.product-card__badge--hot {
  background: #FF6D00;
}

.product-card__badge--new {
  background: var(--color-gold);
}

.product-card__body {
  padding: 16px;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__brand {
  font-size: 0.82rem;
  color: var(--color-gray-light);
  margin-bottom: 8px;
}

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

.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-red);
}

.product-card__price-unit {
  font-size: 0.8rem;
  font-weight: 400;
}

.product-card__cart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-red-light);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  font-size: 0.95rem;
}

.product-card__cart:hover {
  background: var(--color-red);
  color: var(--color-white);
}

/* ============================================================
   品牌 Logo 墙
   ============================================================ */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}

.brand-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
  aspect-ratio: auto;
  min-height: 64px;
  cursor: pointer;
  text-decoration: none;
}

.brand-item:hover {
  border-color: var(--color-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: var(--color-red-light);
}

.brand-item--text span {
  transition: color var(--duration) var(--ease);
}

.brand-item--text:hover span {
  color: var(--color-red) !important;
}

/* ============================================================
   服务承诺卡片
   ============================================================ */
.service-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-red-light);
}

.service-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--color-red-light);
  color: var(--color-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all var(--duration) var(--ease-spring);
}

.service-card:hover .service-card__icon {
  background: var(--color-red);
  color: var(--color-white);
  transform: rotateY(180deg);
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--color-gray-md);
  line-height: 1.6;
}

/* ============================================================
   评价卡片
   ============================================================ */
.review-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-red-light);
}

.review-card__stars {
  color: var(--color-gold);
  margin-bottom: 12px;
  font-size: 1rem;
}

.review-card__text {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-red-light);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.review-card__name {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.9rem;
}

.review-card__product {
  font-size: 0.8rem;
  color: var(--color-gray-light);
}

/* ============================================================
   新闻列表条目
   ============================================================ */
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.news-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.news-item__thumb {
  width: 220px;
  height: 150px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-gray);
}

.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.news-item:hover .news-item__thumb img {
  transform: scale(1.05);
}

.news-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-item__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-item__desc {
  font-size: 0.9rem;
  color: var(--color-gray-md);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__date {
  font-size: 0.8rem;
  color: var(--color-gray-light);
  margin-top: 8px;
}

/* ============================================================
   CTA 横幅
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.cta-banner__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-banner__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn--white {
  position: relative;
  z-index: 1;
  padding: 14px 40px;
  font-size: 1.05rem;
}

/* ============================================================
   统计数字区
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
}

.stat-item__number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--color-gray-md);
  font-weight: 500;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-footer);
  color: #B0B0B0;
  padding: 60px 0 0;
}

.footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 16px 0 20px;
  color: #999;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all var(--duration) var(--ease);
  font-size: 0.95rem;
}

.footer__social a:hover {
  border-color: var(--color-red);
  background: var(--color-red);
  color: var(--color-white);
}

.footer__col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-red);
}

.footer__links a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: #999;
  transition: all var(--duration-fast) var(--ease);
}

.footer__links a:hover {
  color: var(--color-red);
  padding-left: 6px;
}

.footer__contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 0.88rem;
  color: #999;
}

.footer__contact-item i {
  color: var(--color-red);
  margin-top: 4px;
  font-size: 0.9rem;
  width: 16px;
}

.footer__qrcode {
  width: 120px;
  height: 120px;
  background: #333;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.8rem;
  text-align: center;
}

/* 底部友情链接 */
.friend-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  margin-top: 40px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.friend-links__label {
  font-size: 0.85rem;
  color: #777;
  white-space: nowrap;
}

.friend-links a {
  font-size: 0.82rem;
  color: #888;
  transition: color var(--duration-fast) var(--ease);
}

.friend-links a:hover {
  color: var(--color-red);
}

/* 版权栏 */
.footer__bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #777;
}

.footer__bottom a {
  color: #888;
}

.footer__bottom a:hover {
  color: var(--color-red);
}

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1A1A1A;
}

.inner-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.75));
}

.inner-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.inner-banner__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.inner-banner__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--color-gray-md);
}

.breadcrumb a {
  color: var(--color-gray-light);
}

.breadcrumb a:hover {
  color: var(--color-red);
}

.breadcrumb i {
  margin: 0 8px;
  font-size: 0.65rem;
  color: var(--border-color);
}

/* ============================================================
   内页布局
   ============================================================ */
.page-layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

/* 侧边栏 */
.sidebar {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar__title {
  padding: 24px 20px;
  text-align: center;
  background: var(--color-red);
  color: var(--color-white);
}

.sidebar__title h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.sidebar__nav {
  padding: 8px 0;
}

.sidebar__nav a {
  display: block;
  padding: 13px 24px;
  font-size: 0.9rem;
  color: var(--color-gray);
  border-left: 3px solid transparent;
  transition: all var(--duration-fast) var(--ease);
}

.sidebar__nav a:hover,
.sidebar__nav a.active {
  color: var(--color-red);
  background: var(--color-red-light);
  border-left-color: var(--color-red);
}

/* 列表区 */
.list-header {
  margin-bottom: 32px;
}

/* ============================================================
   产品列表页
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.filter-bar a {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-gray);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all var(--duration-fast) var(--ease);
}

.filter-bar a:hover,
.filter-bar a.active {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray);
  border: 1px solid var(--border-color);
  background: var(--color-white);
  transition: all var(--duration-fast) var(--ease);
}

.pagination a:hover,
.pagination a.active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.pagination a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-gray-light);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ============================================================
   产品详情页
   ============================================================ */
.detail {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 20px;
}

.detail__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* 左图轮播 */
.detail-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-gray);
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.detail-gallery .swiper-pagination {
  position: relative;
  margin-top: 12px;
}

.detail-gallery .swiper-pagination-bullet-active {
  background: var(--color-red);
}

/* 右侧信息 */
.detail__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
}

.detail__price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-red);
}

.detail__price-unit {
  font-size: 1rem;
  font-weight: 400;
}

.detail__promo-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-red-light);
  color: var(--color-red);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
}

.detail__params {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
}

.detail__param-label {
  font-size: 0.8rem;
  color: var(--color-gray-light);
  margin-bottom: 4px;
}

.detail__param-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
}

.detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Tab 切换 */
.detail__tabs {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 32px;
  display: flex;
  gap: 0;
}

.detail__tab {
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-md);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration-fast) var(--ease);
}

.detail__tab:hover {
  color: var(--color-red);
}

.detail__tab.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

.detail__panel {
  display: none;
}

.detail__panel.active {
  display: block;
}

.detail__body {
  line-height: 1.9;
  color: var(--color-gray);
}

.detail__body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.detail__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.detail__body table td,
.detail__body table th {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.detail__body table th {
  background: var(--bg-gray);
  font-weight: 600;
  color: var(--color-dark);
}

/* 上下篇 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 40px 0;
  font-size: 0.9rem;
}

.detail__pager a {
  color: var(--color-red);
  font-weight: 600;
}

/* ============================================================
   联系我们
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-red-light);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.8rem;
  color: var(--color-gray-light);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 500;
}

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

/* ============================================================
   表单
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--color-red);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-dark);
  transition: border-color var(--duration-fast) var(--ease);
}

.form-control:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px var(--color-red-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================
   搜索框
   ============================================================ */
.search-form-row {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-light);
}

.search-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 0.95rem;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  background: var(--color-white);
  transition: all var(--duration-fast) var(--ease);
}

.search-input-wrap input:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px var(--color-red-light);
}

/* 搜索结果 */
.search-result-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.search-result-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-red-light);
}

.search-result-item__thumb {
  width: 160px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-gray);
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__info {
  flex: 1;
}

.search-result-item__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.search-result-item__date {
  font-size: 0.8rem;
  color: var(--color-gray-light);
  margin-bottom: 6px;
}

.search-result-item__desc {
  font-size: 0.88rem;
  color: var(--color-gray-md);
  line-height: 1.6;
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-red);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--color-red-dark);
  transform: translateY(-3px);
}

/* ============================================================
   在线客服按钮
   ============================================================ */
.kefu-btn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-red);
  z-index: 999;
  cursor: pointer;
  animation: kefu-pulse 2s infinite;
  transition: all var(--duration) var(--ease);
}

.kefu-btn:hover {
  background: var(--color-red-dark);
  transform: scale(1.1);
}

@keyframes kefu-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(211, 47, 47, 0); }
}

/* ============================================================
   品牌页 Logo 网格
   ============================================================ */
.brand-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.brand-page-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.brand-page-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-red-light);
  transform: translateY(-4px);
}

.brand-page-card__logo {
  width: 100px;
  height: 60px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.brand-page-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.brand-page-card__count {
  font-size: 0.82rem;
  color: var(--color-gray-light);
}

/* ============================================================
   促销活动列表
   ============================================================ */
.promo-list-item {
  display: flex;
  gap: 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.promo-list-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.promo-list-item__image {
  width: 280px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-gray);
}

.promo-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-list-item__badge {
  position: absolute;
  top: 16px;
  left: 0;
  padding: 6px 18px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 0 4px 4px 0;
}

.promo-list-item__info {
  flex: 1;
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
}

.promo-list-item__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.promo-list-item__desc {
  font-size: 0.9rem;
  color: var(--color-gray-md);
  line-height: 1.6;
  flex: 1;
}

.promo-list-item__date {
  font-size: 0.82rem;
  color: var(--color-red);
  font-weight: 600;
  margin-top: 12px;
}

/* ============================================================
   留言/咨询页
   ============================================================ */
.inquiry-form-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   响应式 — 平板 (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-py: 56px;
    --header-h: 60px;
  }

  .section-header__title {
    font-size: 1.6rem;
  }

  /* Header */
  .header__nav {
    display: none;
  }

  .header__actions {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    height: 380px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  /* Grid 响应式 */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 20px 12px 16px;
  }

  .category-card__icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .category-card__name {
    font-size: 0.85rem;
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item__number {
    font-size: 2rem;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* 内页 */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar {
    order: -1;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .detail__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* 新闻条目 */
  .news-item {
    flex-direction: column;
  }

  .news-item__thumb {
    width: 100%;
    height: 180px;
  }

  /* 搜索 */
  .search-result-item {
    flex-direction: column;
  }

  .search-result-item__thumb {
    width: 100%;
    height: 160px;
  }

  /* 促销 */
  .promo-list-item {
    flex-direction: column;
  }

  .promo-list-item__image {
    width: 100%;
    height: 200px;
  }

  .promo-list-item__info {
    padding: 20px;
  }

  .brand-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* 服务卡片 */
  .service-card {
    padding: 24px 16px;
  }

  .service-card__icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    margin-bottom: 14px;
  }

  .service-card__title {
    font-size: 1rem;
  }

  .cta-banner__title {
    font-size: 1.4rem;
  }

  .back-top, .kefu-btn {
    right: 16px;
    bottom: 16px;
  }

  .kefu-btn {
    bottom: 72px;
  }
}

/* ============================================================
   响应式 — 手机 (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .product-grid {
    grid-template-columns: 1fr;
  }

  .grid-5, .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .brand-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    height: 300px;
  }

  .hero__title {
    font-size: 1.4rem;
  }

  .hero__subtitle {
    font-size: 0.85rem;
  }

  .detail__params {
    grid-template-columns: 1fr;
  }

  .detail__tab {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-bar a {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .inquiry-form-card,
  .contact-form-card {
    padding: 24px;
  }
}

/* ============================================================
   AOS 动画微调
   ============================================================ */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ============================================================
   懒加载图片过渡
   ============================================================ */
img[data-src] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[data-src].loaded {
  opacity: 1;
}

/* ============================================================
   工具类
   ============================================================ */
.text-center { text-align: center; }
.text-red { color: var(--color-red); }
.text-gold { color: var(--color-gold); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============================================================
   响应式 — 手机原生排版层 (≤768px)
   ------------------------------------------------------------
   ★ 追加在文件末尾：媒体查询本身不提升特异性，与前面同特异性的规则
     相比靠"后出现"取胜，所以这一层必须留在最后。
   ★ 上面那个 480px 块仍在生效，本层只覆盖需要改的部分。
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-py: 40px;   /* 56px → 40px，10 个版块省下 320px */
    --header-h: 56px;
  }

  /* ---------- 版块标题 ---------- */
  .section-header { margin-bottom: 26px; }
  .section-header__title { font-size: 1.32rem; }
  .section-header__subtitle { font-size: 0.85rem; }
  /* 「促销推荐」「新闻资讯」两处 inline 的左对齐标题行（56 行 / 270 行） */
  .section > .container > div[style*="align-items:flex-end"] {
    margin-bottom: 20px !important;
    gap: 12px !important;
  }
  .section > .container > div[style*="align-items:flex-end"] .btn {
    font-size: 0.78rem;
    padding: 8px 14px;
  }
  .section > .container > div[style*="text-align:center"] { margin-top: 20px !important; }
  .section > .container > div[style*="text-align:center"] .btn {
    font-size: 0.85rem;
    padding: 11px 22px;
  }

  /* ---------- Hero ---------- */
  .hero { height: clamp(260px, 38vh, 360px); }
  .hero__title { font-size: 1.5rem; }
  .hero__subtitle { font-size: 0.82rem; }
  .hero__actions { flex-direction: row; justify-content: center; gap: 10px; flex-wrap: wrap; }
  .hero__actions .btn { padding: 11px 20px; font-size: 0.85rem; }

  /* ---------- 内页 banner ---------- */
  .inner-banner { height: 160px; }
  .inner-banner__title { font-size: 1.3rem; }

  /* ---------- 品类导航：3 列紧凑磁贴 ----------
     5 个品类在 2 列下排成 2+2+1，末行只有一张卡还在最后一整行留白；
     3 列排成 3+2，少一整行。360px 下每张卡约 103px，够放 4 字品名。 */
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category-card { padding: 14px 8px; }
  .category-card__icon { width: 36px; height: 36px; font-size: 0.95rem; margin-bottom: 8px; }
  .category-card__name { font-size: 0.8rem; }
  .category-card__count { font-size: 0.66rem; }

  /* ---------- ★ 产品卡：方形大图竖版 → 横向（左图右文） ----------
     .product-card 桌面是 display:block + aspect-ratio:1 的方图，
     390px 下 4 张卡各占约 470px，两处列表合计 4500px。 */
  .product-card { display: flex; flex-direction: row; align-items: stretch; }
  .product-card__image {
    width: 108px;
    min-width: 108px;
    height: auto;
    min-height: 88px;
    aspect-ratio: auto;
    flex-shrink: 0;
    position: relative;
  }
  /* 容器 height:auto 时 img 的 height:100% 解析不出确定值，会退回
     图片原始比例把卡片撑高，所以缩略图必须绝对定位 */
  .product-card__image img { position: absolute; inset: 0; }
  .product-card__badge { top: 6px; left: 6px; font-size: 0.6rem; padding: 2px 6px; }
  .product-card__body {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .product-card__brand { font-size: 0.7rem; margin-bottom: 3px; }
  .product-card__title { font-size: 0.88rem; line-height: 1.35; margin-bottom: 6px; }
  .product-card__footer { margin-top: auto; }
  .product-card__price { font-size: 1rem; }
  .product-card__cart { width: 30px; height: 30px; font-size: 0.8rem; }
  .grid-4, .product-grid { grid-template-columns: 1fr; gap: 10px; }

  /* ---------- 品牌专区：2 列 → 3 列（12 个品牌从 6 行降到 4 行） ---------- */
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .brand-item { min-height: 52px; padding: 12px 6px; }
  .brand-item--text span { font-size: 0.9rem !important; }

  /* ---------- 服务承诺：竖版卡片 → 左图标右文字 ----------
     标题和描述在模板里没有共同父元素，直接 flex 会让它们并排而不是上下
     堆叠，所以这里用两行栅格来接管排布。 */
  .service-card {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
    row-gap: 3px;
    align-items: start;
    text-align: left;
    padding: 14px 16px;
  }
  .service-card__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    margin-bottom: 0;
  }
  .service-card__title { grid-column: 2; grid-row: 1; font-size: 0.9rem; margin-bottom: 0; }
  .service-card__desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.74rem;
    line-height: 1.5;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .grid-3 { gap: 10px; }

  /* ---------- 客户好评：竖排 → 横向滑动条 ----------
     3 张竖排占掉 1210px；改成滑动条后下一张露边提示可滑。 */
  .review-strip {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 6px;
  }
  .review-strip::-webkit-scrollbar { display: none; }
  .review-strip .review-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .review-card { padding: 16px; }
  .review-card__text {
    font-size: 0.8rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .review-card__avatar { width: 36px; height: 36px; }
  .review-card__name { font-size: 0.84rem; }
  .review-card__product { font-size: 0.72rem; }

  /* ---------- 新闻条目：保持横向（768px 层把它改成了竖版） ---------- */
  .news-item { flex-direction: row; gap: 12px; padding: 10px; }
  .news-item__thumb {
    width: 108px;
    height: auto;
    min-height: 84px;
    flex-shrink: 0;
    position: relative;
  }
  .news-item__thumb img { position: absolute; inset: 0; }
  .news-item__title { font-size: 0.88rem; line-height: 1.35; margin-bottom: 4px; }
  .news-item__desc {
    font-size: 0.73rem;
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-item__date { font-size: 0.66rem; margin-top: auto; }
  /* 首页新闻列表 3 条之间的间距 */
  .news-item + .news-item { margin-top: 10px; }

  /* ---------- 数据统计 ---------- */
  .stats-grid { gap: 10px; }
  .stat-item { padding: 16px 10px; }
  .stat-item__number { font-size: 1.5rem; }
  .stat-item__label { font-size: 0.72rem; }

  /* ---------- CTA 横幅 ---------- */
  .cta-banner { padding: 34px 0; }
  .cta-banner__title { font-size: 1.25rem; }
  .cta-banner__subtitle { font-size: 0.82rem; }

  /* ---------- 页脚：4 段纵向堆叠 → 2×2 栅格 ---------- */
  .footer { padding: 34px 0 0; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
    padding: 0 16px;
  }
  .footer__grid > div:first-child { grid-column: 1; grid-row: 1; }
  .footer__grid > div:nth-child(4) { grid-column: 2; grid-row: 1; }
  .footer__grid > div:nth-child(2) { grid-column: 1; grid-row: 2; }
  .footer__grid > div:nth-child(3) { grid-column: 2; grid-row: 2; }
  .footer__brand-desc {
    font-size: 0.76rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .footer__col-title { font-size: 0.86rem; margin-bottom: 10px; }
  .footer__links a { padding: 4px 0; font-size: 0.76rem; }
  .footer__contact-item { font-size: 0.74rem; margin-bottom: 8px; }
  .footer__social a { width: 32px; height: 32px; font-size: 0.82rem; }
  .footer__bottom-inner { padding: 14px 16px; gap: 6px; font-size: 0.7rem; }

  /* ---------- 产品列表页 ----------
     侧边栏与上方 sticky 的 .filter-bar 是同一份子栏目导航，手机上重复
     且把产品挤出首屏；filter-bar 已经承担导航职责，故手机端隐藏侧栏。 */
  .sidebar { display: none; }
  .page-layout { gap: 0; }
  .filter-bar { gap: 6px; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar a { flex-shrink: 0; padding: 6px 13px; font-size: 0.75rem; }

  /* ---------- 产品详情 ---------- */
  .detail__top { gap: 16px; }
  .detail__params { gap: 8px; }
  .detail__tabs { overflow-x: auto; scrollbar-width: none; }
  .detail__tabs::-webkit-scrollbar { display: none; }
  .detail__tab { flex-shrink: 0; padding: 11px 14px; font-size: 0.8rem; }
  .related-grid { gap: 10px; }

  /* ---------- 搜索 / 促销条目 ---------- */
  .search-result-item { flex-direction: row; gap: 12px; padding: 10px; }
  .search-result-item__thumb {
    width: 96px;
    height: auto;
    min-height: 76px;
    flex-shrink: 0;
    position: relative;
  }
  .promo-list-item { flex-direction: row; }
  .promo-list-item__image { width: 108px; height: auto; min-height: 84px; flex-shrink: 0; }
  .promo-list-item__info { padding: 10px 12px; }

  /* ---------- 表单 ---------- */
  .inquiry-form-card, .contact-form-card { padding: 20px 16px; }
  .form-group { margin-bottom: 14px; }

  /* ---------- 悬浮按钮 ---------- */
  .back-top, .kefu-btn { right: 12px; }
  .kefu-btn { bottom: 64px; }
  .back-top { bottom: 12px; }
}
