/**
 * MOSS Leather — 手工皮具品牌主题样式
 * 暖棕复古 · 匠心质感 · 叙事留白
 * 纯原生 CSS，无框架依赖
 */

/* Google Fonts — 优雅衬线 + 现代无衬线 */


/* ============================================================
   CSS 变量体系 — 皮革色调
   ============================================================ */
:root {
  /* 基底色 — 暖白/米色 */
  --bg-cream: #FDF8F3;
  --bg-warm: #F5EDE3;
  --bg-card: #FFFFFF;
  --bg-card-warm: #FBF6EF;
  --bg-dark: #3D2B1F;
  --bg-darker: #2C1F14;

  /* 主色 — 暖棕皮具色 */
  --brown: #8B6B4A;
  --brown-dark: #3D2B1F;
  --brown-light: #C9A87C;
  --brown-faded: #D4B896;
  --bronze: #B8860B;
  --bronze-light: #D4A853;
  --accent: #A0523C;

  /* 点缀色 */
  --gold: #C8975A;
  --cream: #FFF8EC;
  --rust: #8B4513;
  --moss-green: #5C6B4A;

  /* 文字色阶 */
  --text-primary: #2C1F14;
  --text-secondary: #5C4332;
  --text-muted: #8B7355;
  --text-light: #B8A088;

  /* 边框 */
  --border-subtle: #E8DCCF;
  --border-warm: #D4C4AE;
  --border-brown: rgba(139, 107, 74, 0.3);
  --border-accent: rgba(184, 134, 11, 0.3);

  /* 阴影 — 温暖柔和 */
  --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.06);
  --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.08);
  --shadow-lg: 0 8px 32px rgba(61, 43, 31, 0.1);
  --shadow-card: 0 2px 12px rgba(61, 43, 31, 0.05);

  /* 圆角 — 精致小圆角 */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* 间距 */
  --section-py: 90px;
  --container-max: 1200px;
  --header-h: 76px;
  /* 容器左右内边距。手机端会改小，卡片流靠它做"出血到屏幕边缘" */
  --gutter: 28px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* 字体 — 优雅衬线标题 + 现代无衬线正文 */
  --font-heading: 'Cormorant Garamond', 'Noto Serif SC', 'Georgia', 'STSong', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cormorant Garamond', 'Noto Serif SC', 'KaiTi', 'STKaiti', serif;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-cream);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 选中色 */
::selection {
  background: rgba(139, 107, 74, 0.2);
  color: var(--text-primary);
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb { background: var(--brown-faded); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brown); }

/* 链接 */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-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-light);
  opacity: 1;
}

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  position: relative;
}

.section-tag::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--brown-light);
  margin-top: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-py) 0;
}

/* ============================================================
   Header 头部 — 米白半透，暖色质感
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(253, 248, 243, 0.98);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo — 手写复古风格 */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-icon {
  width: 42px;
  height: 42px;
  background: var(--brown-dark);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cream);
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.header__logo-sub {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  font-family: var(--font-body);
}

/* 主导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--brown);
  background: rgba(139, 107, 74, 0.06);
}

/* 导航下拉 */
.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: 160px;
  padding: 8px 0;
  background: rgba(253, 248, 243, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}

.header__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: 0.03em;
}

.header__dropdown a:hover {
  color: var(--brown);
  background: rgba(139, 107, 74, 0.05);
}

/* 右侧操作区 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 24px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: transparent;
  color: var(--brown-dark);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--brown);
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
  transition: all var(--duration-normal) var(--ease-out);
}

.header__cta:hover {
  background: var(--brown-dark);
  color: var(--cream);
  border-color: var(--brown-dark);
}

/* ============================================================
   汉堡菜单（移动端）
   ============================================================ */
.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: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(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(--bg-cream);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-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-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.04em;
}

.mobile-nav__link:hover {
  color: var(--brown);
}

.mobile-nav__sub {
  padding-left: 16px;
  display: none;
  background: var(--bg-warm);
}

.mobile-nav__sub.open {
  display: block;
}

.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 31, 20, 0.4);
  z-index: 115;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav__overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--bg-dark);
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.65;
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,31,20,0.5) 0%, rgba(44,31,20,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 28px;
}

.inner-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.inner-banner__subtitle {
  font-size: 0.95rem;
  color: var(--brown-faded);
  letter-spacing: 0.08em;
}

/* 面包屑 */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover {
  color: var(--brown);
}

.breadcrumb i {
  font-size: 0.6rem;
  color: var(--text-light);
}

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brown-dark);
  color: var(--cream);
  border: 1px solid var(--brown-dark);
}

.btn--primary:hover {
  background: #2C1F14;
  color: var(--cream);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--brown-dark);
  border: 1px solid var(--brown);
}

.btn--outline:hover {
  background: var(--brown-dark);
  color: var(--cream);
  border-color: var(--brown-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(139, 107, 74, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-warm);
}

.btn--ghost:hover {
  background: rgba(139, 107, 74, 0.1);
  color: var(--text-primary);
}

.btn--gold {
  background: var(--bronze);
  color: #fff;
  border: 1px solid var(--bronze);
}

.btn--gold:hover {
  background: #9A7209;
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ============================================================
   卡片系统 — 米白/暖棕，精致边框
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-brown);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--brown);
  background: rgba(139, 107, 74, 0.06);
  border: 1px solid rgba(139, 107, 74, 0.12);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  align-self: flex-start;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.03em;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card__price {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brown-dark);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.card--warm {
  background: var(--bg-card-warm);
}

/* ============================================================
   首页 — Hero Banner (Swiper)
   ============================================================ */
.hero {
  position: relative;
  height: 90vh;
  min-height: 580px;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero .swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(44,31,20,0.35) 0%, rgba(44,31,20,0.2) 40%, rgba(44,31,20,0.75) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 100px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  text-align: left;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  max-width: 700px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 248, 236, 0.75);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero 分页器 */
.hero-pagination {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding-left: var(--gutter);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.hero-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 248, 236, 0.35);
  opacity: 1;
  transition: all var(--duration-normal);
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 52px;
  background: var(--brown-light);
}

/* 滚动指示器 */
.hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 248, 236, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollFloat 2s ease-in-out infinite;
  font-family: var(--font-heading);
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--brown-light), transparent);
}

@keyframes scrollFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   首页 — 精选作品 (Featured Products)
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================================
   首页 — 工坊故事 (Workshop Story)
   ============================================================ */
.story-section {
  background: var(--bg-dark);
  color: rgba(255, 248, 236, 0.85);
  position: relative;
  overflow: hidden;
}

.story-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139, 107, 74, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-image {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--brown-dark);
  border: 1px solid rgba(139, 107, 74, 0.2);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
  pointer-events: none;
}

.story-year {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--brown-light);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 8px;
}

.story-text {
  color: var(--text-light);
}

.story-text .section-title {
  color: var(--cream);
}

.story-text .section-tag {
  color: var(--brown-light);
}

.story-text .section-tag::after {
  background: var(--brown-light);
}

/* ============================================================
   首页 — 产品分类 (Category Grid)
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
  text-align: center;
}

.category-item:hover {
  border-color: var(--border-brown);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category-item__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(139, 107, 74, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brown);
}

.category-item__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.category-item__count {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ============================================================
   首页 — 皮革细节 (Detail Slideshow)
   ============================================================ */
.detail-slide {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
}

.detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.detail-slide:hover img {
  transform: scale(1.03);
}

.detail-slide__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(44,31,20,0.7));
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

/* ============================================================
   首页 — 定制服务 (Custom Services)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-brown);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(139, 107, 74, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brown);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   首页 — 客户评价
   ============================================================ */
.review-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.review-card:hover {
  border-color: var(--border-brown);
  box-shadow: var(--shadow-sm);
}

.review-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 18px;
  font-style: italic;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--brown-light);
}

.review-card__author {
  font-size: 0.85rem;
  color: var(--brown);
  letter-spacing: 0.04em;
}

.review-card__author strong {
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================================
   首页 — 新闻资讯
   ============================================================ */
.news-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-fast) var(--ease-out);
}

.news-list-item:hover {
  padding-left: 8px;
}

.news-list-item__thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-warm);
}

.news-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-item__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-item__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.news-list-item__date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.news-list-item__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   首页 — CTA (Call to Action)
   ============================================================ */
.cta-section {
  background: var(--bg-dark);
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139, 107, 74, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  padding: 0 16px;
}

.cta-section .btn {
  max-width: 90vw;
  white-space: normal;
  text-align: center;
}

/* ============================================================
   列表页 — 网格 + 过滤栏
   ============================================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.list-header {
  text-align: center;
  margin-bottom: 40px;
}

.list-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

/* 子栏目过滤栏 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 16px 0;
  margin-bottom: 32px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar a {
  display: inline-flex;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--brown-dark);
  border-color: var(--brown);
  background: rgba(139, 107, 74, 0.05);
}

/* ============================================================
   详情页
   ============================================================ */
.detail {
  max-width: 860px;
  margin: 0 auto;
}

.detail__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail__meta-row i {
  margin-right: 4px;
  color: var(--brown);
}

/* 产品详情 — 左图右信息 */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail__gallery {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-detail__gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 参数卡片 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.detail__param {
  padding: 14px;
  background: var(--bg-card-warm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  text-align: center;
}

.detail__param-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.detail__param-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
}

/* 正文内容 */
.detail__body {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
}

.detail__body img {
  border-radius: var(--radius-sm);
  margin: 28px 0;
  max-width: 100%;
}

.detail__body p { margin-bottom: 18px; }

.detail__body h2, .detail__body h3, .detail__body h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 400;
  margin-top: 36px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.detail__body ul, .detail__body ol {
  padding-left: 20px;
  margin-bottom: 18px;
}

.detail__body ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.detail__body ol li {
  list-style: decimal;
  margin-bottom: 6px;
}

/* 上下篇导航 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.detail__pager a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.detail__pager a:hover {
  color: var(--brown);
}

/* 相关推荐 */
.related-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 56px 0 24px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   联系我们/定制页
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  transition: all var(--duration-fast) var(--ease-out);
}

.contact-info__item:hover {
  border-color: var(--border-brown);
}

.contact-info__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: rgba(139, 107, 74, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}

.contact-info__value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 联系表单 */
.contact-form-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group label .required {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.form-control:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(139, 107, 74, 0.08);
}

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='%238B7355' 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: 680px;
  margin: 0 auto;
}

.search-form-row {
  display: flex;
  gap: 10px;
}

.search-form-row input {
  flex: 1;
  padding: 15px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-form-row input:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(139, 107, 74, 0.06);
}

.search-result-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  margin-bottom: 10px;
}

.search-result-item:hover {
  border-color: var(--border-brown);
  background: var(--bg-card-warm);
}

.search-result-item__thumb {
  width: 110px;
  height: 85px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-warm);
}

.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;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.search-result-item__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   评价页 — 瀑布流卡片
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card-full {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.review-card-full:hover {
  border-color: var(--border-brown);
  box-shadow: var(--shadow-sm);
}

.review-card-full__image {
  border-radius: var(--radius-xs);
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 16px;
  background: var(--bg-warm);
}

.review-card-full__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card-full__text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
  font-style: italic;
}

.review-card-full__author {
  font-size: 0.85rem;
  color: var(--brown);
  letter-spacing: 0.03em;
}

/* ============================================================
   工坊故事页
   ============================================================ */
.workshop-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 36px 0;
}

.workshop-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

/* 制作流程步骤 */
.process-timeline {
  position: relative;
  padding-left: 40px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-warm);
}

.process-step {
  position: relative;
  margin-bottom: 36px;
}

.process-step::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brown);
  border: 2px solid var(--bg-cream);
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination a:hover {
  background: rgba(139, 107, 74, 0.05);
  color: var(--brown);
  border-color: var(--border-brown);
}

.pagination .active {
  background: var(--brown-dark);
  color: var(--cream);
  border-color: var(--brown-dark);
}

.pagination .disabled {
  color: var(--text-light);
  pointer-events: none;
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 14px;
  display: block;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   Footer 底部 — 暖色背景，四列
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 248, 236, 0.7);
}

.footer__top-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brown), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: rgba(255, 248, 236, 0.55);
  line-height: 1.8;
  margin: 16px 0;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 248, 236, 0.5);
  font-size: 0.9rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--brown);
  color: var(--cream);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255, 248, 236, 0.5);
  transition: color var(--duration-fast);
  letter-spacing: 0.03em;
}

.footer__links a:hover {
  color: var(--brown-light);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(255, 248, 236, 0.5);
  margin-bottom: 8px;
}

.footer__contact-item i {
  color: var(--brown-light);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__qrcode {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: var(--radius-xs);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #999;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 248, 236, 0.08);
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 0.78rem;
  color: rgba(255, 248, 236, 0.4);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a {
  color: rgba(255, 248, 236, 0.4);
  transition: color var(--duration-fast);
}

.footer__bottom a:hover {
  color: var(--brown-light);
}

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
}

.friend-links__label {
  font-size: 0.8rem;
  color: rgba(255, 248, 236, 0.4);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.friend-links a {
  font-size: 0.8rem;
  color: rgba(255, 248, 236, 0.4);
  transition: color var(--duration-fast);
  letter-spacing: 0.03em;
}

.friend-links a:hover {
  color: var(--brown-light);
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--brown-dark);
  color: var(--cream);
  border-color: var(--brown-dark);
}

/* ============================================================
   在线客服按钮
   ============================================================ */
.online-service {
  position: fixed;
  right: 20px;
  bottom: 136px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--bronze);
  color: var(--bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 80;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.online-service:hover {
  background: var(--bronze);
  color: #fff;
}

/* ============================================================
   动画系统 — 温暖叙事感
   ============================================================ */

/* --- 淡入上移 --- */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- 皮革纹理微动 --- */
@keyframes leatherShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- 缝线动画 --- */
@keyframes stitchIn {
  0% { stroke-dashoffset: 100; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* --- 温暖呼吸光 --- */
@keyframes warmPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 107, 74, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(139, 107, 74, 0); }
}

/* --- 卡片入场错位 --- */
.card[data-aos] {
  transition: all var(--duration-normal) var(--ease-out);
}

/* AOS 覆盖 */
[data-aos] {
  transition-timing-function: var(--ease-out);
}

/* Hero 标题入场 */
.hero__title {
  animation: fadeInUp 1s var(--ease-out) both;
}

.hero__subtitle {
  animation: fadeInUp 1s var(--ease-out) 0.2s both;
}

.hero__actions {
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

/* CTA 脉冲按钮 */
.btn--primary.pulse {
  animation: warmPulse 2.5s infinite;
}

/* ============================================================
   定制页面 — 流程步骤
   ============================================================ */
.custom-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.custom-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border-warm);
  z-index: 0;
}

.custom-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.custom-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--brown);
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 auto 14px;
}

.custom-step__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.custom-step__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   响应式断点 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 64px; }

  .header__nav,
  .header__actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* 平板宽度下留两列：评价卡片单列竖排时，12 条要滚 8000px 以上 */
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workshop-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .custom-steps::before { display: none; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-list-item {
    grid-template-columns: 140px 1fr;
  }

  .detail__pager {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   响应式断点 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --section-py: 44px;
    --header-h: 58px;
    --gutter: 16px;
  }

  /* 固定头部会盖住锚点目标，给滚动留出头部高度 */
  html { scroll-padding-top: calc(var(--header-h) + 8px); }

  /* ============================================================
     头部
     ============================================================ */
  /* .header__logo 原本是 flex-shrink:0，长站点名会把汉堡挤出屏幕外 */
  .header__logo {
    flex-shrink: 1;
    min-width: 0;
  }

  .header__logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .header__logo-text { min-width: 0; }

  .header__logo-name {
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header__logo-sub { letter-spacing: .16em; }

  .hamburger {
    width: 44px;
    height: 44px;
    margin-left: 0;
    flex-shrink: 0;
  }

  /* ============================================================
     Hero
     ============================================================ */
  .hero {
    height: 62vh;
    min-height: 400px;
    max-height: 520px;
  }

  .hero__content { padding-bottom: 44px; }

  .hero__title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    letter-spacing: .03em;
  }

  .hero__subtitle {
    font-size: .88rem;
    margin-bottom: 1.25rem;
  }

  .hero__actions { gap: 10px; }

  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    min-height: 44px;
    padding: 12px 14px;
    font-size: .83rem;
  }

  .hero-pagination {
    margin-top: 18px;
    gap: 8px;
  }

  .hero-pagination .swiper-pagination-bullet { width: 26px; }
  .hero-pagination .swiper-pagination-bullet-active { width: 38px; }

  .hero__scroll-indicator { display: none; }

  /* ============================================================
     节奏压缩
     ============================================================ */

  /* 模板里区块标题组写的是内联 margin-bottom:32/40px，只能 !important 压掉 */
  .section > .container > div[style*="margin-bottom:40px"],
  .section > .container > div[style*="margin-bottom:32px"],
  .section > .container > div[style*="margin-bottom:48px"] { margin-bottom: 18px !important; }

  .section-tag {
    font-size: .64rem;
    letter-spacing: .2em;
    margin-bottom: .5rem;
  }

  .section-tag::after { margin-top: 6px; width: 26px; }

  .section-title { font-size: 1.32rem; }

  .section-subtitle {
    font-size: .84rem;
    line-height: 1.7;
  }

  .inner-banner { height: 156px !important; }
  .inner-banner__title { font-size: 1.25rem; }
  .inner-banner__subtitle { font-size: .8rem; }
  .breadcrumb-bar { padding: 12px 0; }

  /* ============================================================
     横向卡片流（仅首页）

     首页的 .featured-grid / .category-grid / .services-grid / .reviews-grid
     在桌面端都是并排网格，窄屏下压成一列后每个区块要占 900–1900px。
     改成横向滑动后一个区块只占一屏高度，下一张卡露在外面提示可滑。

     用 body.home 作用域：.list-grid 在 productlist.html 上也在用，
     列表页要保留网格方便比对，不能一起变成滑动条。
     ============================================================ */
  body.home .featured-grid,
  body.home .category-grid,
  body.home .services-grid,
  body.home .reviews-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* 出血到屏幕边缘：抵消 .container 的左右内边距，再用 padding 补回来 */
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    /* ★ 有 scroll-snap-align:start 时吸附位置是"子项起点对齐滚动口起点"，
       不认 padding —— 缺了 scroll-padding，容器会自己向右滚 var(--gutter)，
       把第一张卡切掉左半边。 */
    scroll-padding-inline: var(--gutter);
  }

  body.home .featured-grid::-webkit-scrollbar,
  body.home .category-grid::-webkit-scrollbar,
  body.home .services-grid::-webkit-scrollbar,
  body.home .reviews-grid::-webkit-scrollbar { display: none; }

  body.home .featured-grid > *,
  body.home .category-grid > *,
  body.home .services-grid > *,
  body.home .reviews-grid > * {
    flex: 0 0 auto;
    min-width: 0;
    scroll-snap-align: start;
  }

  body.home .featured-grid > * { flex-basis: 68%; }
  body.home .category-grid > * { flex-basis: 30%; }
  body.home .services-grid > * { flex-basis: 76%; }
  body.home .reviews-grid > * { flex-basis: 84%; }

  /* 卡片流里的卡片收紧内边距 */
  body.home .featured-grid .card__body { padding: 14px; }
  body.home .featured-grid .card__title { font-size: .95rem; }
  body.home .featured-grid .card__desc { font-size: .8rem; }
  body.home .featured-grid .card__price { font-size: 1rem; margin-top: 8px; }

  body.home .category-item { padding: 18px 8px 16px; }
  body.home .category-item__icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 10px; }
  body.home .category-item__name { font-size: .85rem; }

  body.home .service-card { padding: 24px 18px; }
  body.home .service-card__icon { font-size: 1.5rem; margin-bottom: 12px; }
  body.home .service-card__title { font-size: 1rem; }
  body.home .service-card__desc { font-size: .8rem; }

  body.home .review-card { padding: 22px 18px; }
  body.home .review-card__text { font-size: .85rem; }
  body.home .review-card__author { font-size: .78rem; }

  /* 卡片流下方的圆点指示器（main.js 渐进增强插入，不溢出则不插） */
  .card-rail__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
  }

  .card-rail__dot {
    position: relative;
    width: 28px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  /* 视觉上是 6px 的小点，但按钮本身 28×32（WCAG 2.5.8 要求 ≥24×24） */
  .card-rail__dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-warm);
    transition: background var(--duration-fast), width var(--duration-fast);
  }

  .card-rail__dot.is-active::before {
    width: 16px;
    background: var(--brown);
  }

  /* ============================================================
     工坊故事
     ============================================================ */
  .story-grid { gap: 22px; }
  .story-image { border-radius: var(--radius-sm); }
  .story-year { font-size: 2.4rem; }
  .story-text .section-title { margin-bottom: .5rem; }
  .story-text p { font-size: .88rem !important; line-height: 1.8 !important; }

  /* ============================================================
     皮革细节：Swiper 幻灯片
     ============================================================ */
  /* 模板给每张 slide 写死了内联 width:320px */
  .detail-swiper .swiper-slide { width: 232px !important; }
  .detail-slide__caption { font-size: .8rem; padding: 10px 12px; }

  /* ============================================================
     新闻资讯：左图右文一行
     ============================================================ */
  .news-list-item {
    grid-template-columns: 112px 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .news-list-item:hover { padding-left: 0; }
  .news-list-item__title { font-size: .95rem; margin-bottom: 4px; }
  .news-list-item__date { font-size: .7rem; margin-bottom: 4px; }
  .news-list-item__desc { font-size: .78rem; }

  /* ============================================================
     CTA
     ============================================================ */
  .cta-section { padding: 44px var(--gutter); }
  .cta-section__title { font-size: 1.28rem; }

  .cta-section .btn {
    padding: 13px 22px;
    font-size: .85rem;
    min-height: 44px;
  }

  /* ============================================================
     列表页 / 详情页
     ============================================================ */

  /* 列表页保留两列网格（这里是浏览比对场景，不是首页展示） */
  .list-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .list-header { margin-bottom: 22px; }

  /* reviews.html 的评价列表：平板段已经把它压成一列，12 条评价竖排要 5000px+。
     列表页折回两列。（首页那条 .reviews-grid 是横向卡片流，选择器优先级更高，
     这里的 grid-template-columns 对它不起作用。） */
  .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .review-card-full { padding: 14px 12px; }
  .review-card-full__image { margin-bottom: 10px; }
  .review-card-full__text { font-size: .78rem; line-height: 1.7; margin-bottom: 10px; }
  .review-card-full__author { font-size: .74rem; }
  .list-header h1 { font-size: 1.3rem; }

  .card__body { padding: 14px; }
  .card__title { font-size: .95rem; }
  .card__desc { font-size: .8rem; }

  /* 筛选栏：横向滑动 + 出血 */
  .filter-bar {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    margin-bottom: 22px;
  }

  .filter-bar a { padding: 8px 15px; font-size: .76rem; }

  /* productlist.html 的吸顶筛选栏要在变矮的头部下面 */
  div[style*="position:sticky"][style*="top:76px"] { top: var(--header-h) !important; }

  .detail__header { margin-bottom: 20px; }
  .detail__title { font-size: 1.25rem; }
  .detail__meta-row { gap: 12px; font-size: .74rem; }
  .detail__params { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .detail__param { padding: 14px 10px; }
  .detail__param-value { font-size: .95rem; }
  .detail__body { font-size: .9rem; line-height: 1.8; }
  .detail__pager { margin-top: 28px; }

  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* 产品详情 */
  .product-detail-grid { gap: 22px; }
  .product-detail__gallery img { aspect-ratio: 4/3; }
  .product-detail__info h1 { font-size: 1.3rem; }

  /* ============================================================
     关于 / 工坊 / 定制
     ============================================================ */

  /* about.html 的四列数字条：375px 下四列会挤成一团，折成两列 */
  div[style*="repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 12px !important;
    margin-top: 32px !important;
    padding: 26px 0 !important;
  }

  /* 两列表单：姓名/电话这种纯输入框在 375px 下并排每列约 145px，够用而且更短，
     保持两列；含下拉的行选项文字（"1000-3000元"）在那个宽度会被截断，折成一列。
     用 :has() 区分——浏览器不支持时这条不生效，退回模板原本的两列，不会坏。 */
  form div[style*="grid-template-columns:1fr 1fr"]:has(select),
  form div[style*="grid-template-columns: 1fr 1fr"]:has(select) {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* inquiry.html 的三块联系方式：375px 下三列每列只剩约 100px，
     电话号和营业时间都要折成三四行。改成一列横排（图标在左、文字在右）。 */
  div[style*="repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 24px !important;
    text-align: left !important;
  }

  div[style*="repeat(3,1fr)"] > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px !important;
  }

  /* 模板给图标写了内联 display:block，横排要改回行内 */
  div[style*="repeat(3,1fr)"] > div > i {
    display: inline-block !important;
    margin-bottom: 0 !important;
    flex: 0 0 auto;
  }

  /* custom.html 里内联 padding:40px 的卡片 */
  .section > .container > div[style*="padding:40px"] { padding: 20px !important; }

  /* about / custom / product / workshop 里的区块间距都是写死的内联值，
     桌面端留 48–60px 的呼吸感，手机端按同样比例收到一半左右 */
  div[style*="margin-top:48px"] { margin-top: 26px !important; }
  div[style*="margin-top:56px"] { margin-top: 28px !important; }
  div[style*="margin-top:60px"] { margin-top: 30px !important; }
  div[style*="margin-bottom:56px"] { margin-bottom: 28px !important; }
  div[style*="padding-top:40px"] { padding-top: 22px !important; }

  .custom-steps { gap: 14px; }

  /* 制作流程：时间线竖排，收紧左侧留白和步骤间距 */
  .process-timeline { padding-left: 26px; }
  .process-timeline::before { left: 5px; }
  .process-step { margin-bottom: 24px; }
  .process-step::before { left: -25px; }
  .process-step__title { font-size: 1rem; }

  .workshop-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ============================================================
     联系 / 表单
     ============================================================ */
  .contact-grid { gap: 26px; }
  .contact-info__item { padding: 16px; gap: 12px; }
  .contact-info__icon { width: 40px; height: 40px; }
  .contact-form-card { padding: 20px; }

  .form-control { font-size: 16px; }

  /* search.html 首屏那段内联 padding-top:116px */
  section[style*="padding-top:116px"] { padding-top: calc(var(--header-h) + 26px) !important; }

  .search-form-row { flex-direction: column; }
  .search-form-row input { font-size: 16px; }
  .search-form-row .btn { justify-content: center; min-height: 44px; }

  .search-result-item { flex-direction: row; gap: 12px; }
  .search-result-item__thumb { width: 108px; height: 82px; flex: 0 0 108px; }
  .search-result-item__title { font-size: .92rem; }
  .search-result-item__desc { font-size: .78rem; }

  /* ============================================================
     分页 / 空状态
     ============================================================ */
  .pagination { margin-top: 26px; gap: 6px; }
  .pagination a, .pagination span { min-width: 36px; height: 36px; }
  .empty-state { padding: 48px 16px; }

  /* ============================================================
     Footer
     ============================================================ */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
    padding: 34px var(--gutter) 24px;
  }

  /* 品牌块独占一行，避免和导航列挤在一起 */
  .footer__grid > *:first-child { grid-column: 1 / -1; }

  .footer__brand-desc { font-size: .8rem; margin: 10px 0; }
  .footer__col-title { font-size: .92rem; margin-bottom: 12px; }
  .footer__links { gap: 8px; }
  .footer__links a { font-size: .8rem; padding: 2px 0; }
  .footer__contact-item { font-size: .78rem; margin-bottom: 8px; }
  .footer__qrcode { width: 88px; height: 88px; }

  /* 第 4 列（关注我们）跨两列后是整行宽度，二维码和说明文字竖排会空掉右半边。
     改成标题独占一行，二维码和文字并排。 */
  .footer__grid > *:nth-child(4) {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
  }

  .footer__grid > *:nth-child(4) > .footer__col-title {
    flex: 0 0 100%;
    margin-bottom: 0;
  }

  .footer__grid > *:nth-child(4) > p { margin-top: 0 !important; }

  .footer__bottom { padding: 16px 0; }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer__bottom-inner a { padding: 2px 0; }

  /* 友情链接一行横滑，不折成三行 */
  .friend-links {
    flex-wrap: nowrap;
    gap: 14px;
    padding: 12px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-inline: calc(var(--gutter) * -1);
  }

  .friend-links::-webkit-scrollbar { display: none; }
  .friend-links a, .friend-links__label { flex: 0 0 auto; padding: 3px 0; }

  /* ============================================================
     悬浮按钮：错开摆放，避免叠在一起
     ============================================================ */
  .back-top {
    right: 12px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }

  .online-service {
    right: 12px;
    bottom: 76px;
  }
}

/* ============================================================
   偏好：减少动画
   ============================================================ */
@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;
  }
}

/* zzm-reviewed-demo-layout-174; original ZIP unchanged */
@media (min-width: 992px) and (max-width: 1599px) {
  .header__inner { gap: 16px; }
  .header__nav { display: none; }
  .header__actions { margin-left: auto; flex-shrink: 0; }
  .header__cta { white-space: nowrap; flex-shrink: 0; }
  .hamburger { display: flex; flex-shrink: 0; margin-left: 8px; }
}
@media (min-width: 1600px) {
  .header__inner { max-width: none; width: 100%; padding-left: 32px; padding-right: 32px; gap: 16px; }
  .header__nav a { white-space: nowrap; }
  .header__logo { min-width: 0; max-width: 300px; flex-shrink: 0; }
  .header__logo-text { min-width: 0; }
  .header__logo-name, .header__logo-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header__cta { white-space: nowrap; flex-shrink: 0; }
}