/**
 * 时光印品 — 定制影像品牌官网样式
 * 温暖质感 / 纸质纹理 / 记忆珍藏
 * 暖白 + 暖棕 + 浅灰 + 金色点缀 + 淡彩
 * 纯原生 CSS，无框架依赖
 */

/* ============================================================
   CSS 变量体系 — 温暖纸质感
   ============================================================ */
:root {
  /* === 主色系：暖棕 + 金色 === */
  --color-primary: #8B5E3C;
  --color-primary-dark: #5C3A24;
  --color-primary-light: #C4A68B;
  --color-gold: #C8963E;
  --color-gold-light: #E8D5A3;
  --color-gold-pale: #F5EDDC;

  /* === 背景色：米白纸张 === */
  --color-bg: #FFFDF7;
  --color-surface: #FFF9F2;
  --color-card: #FFFFFF;
  --color-card-hover: #FFFBF6;

  /* === 文字色阶 === */
  --color-text: #3D3027;
  --color-text-secondary: #7A6E64;
  --color-text-muted: #A99D94;

  /* === 边框 & 分割 === */
  --color-border: #E8E0D5;
  --color-border-light: #F2ECE4;

  /* === 点缀色 === */
  --color-accent: #E8B4B8;
  --color-accent-light: #FCE8EA;
  --color-cta: #C8963E;
  --color-cta-hover: #B58330;

  /* === 阴影 — 纸质轻柔 === */
  --shadow-xs: 0 1px 3px rgba(92, 58, 36, 0.04);
  --shadow-sm: 0 2px 8px rgba(92, 58, 36, 0.06);
  --shadow-md: 0 4px 16px rgba(92, 58, 36, 0.08);
  --shadow-lg: 0 8px 32px rgba(92, 58, 36, 0.10);
  --shadow-card: 0 2px 12px rgba(92, 58, 36, 0.06);

  /* === 圆角 — 大圆角亲切感 === */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  /* === 间距 === */
  --section-py: 88px;
  --section-py-sm: 56px;
  --container-max: 1200px;
  --header-h: 72px;

  /* === 过渡 === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* === 字体 === */
  --font-heading: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'STZhongsong', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Segoe UI', sans-serif;
  --font-script: 'Ma Shan Zheng', 'ZCOOL XiaoWei', 'KaiTi', 'STKaiti', cursive;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

/* 纸张纹理背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #FFFDF7 0%, #FFF9F2 50%, #FFFBF7 100%);
  pointer-events: none;
}

::selection {
  background: rgba(200, 150, 62, 0.2);
  color: var(--color-text);
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

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

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

/* 所有媒体元素不超出容器 */
video, canvas, iframe, embed, object {
  max-width: 100%;
}

ul, ol { list-style: none; }

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

input::placeholder, textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 28px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  line-height: 1.75;
}

/* 手写风格 accent */
.text-script {
  font-family: var(--font-script);
  font-size: 1.3em;
  color: var(--color-gold);
  font-weight: 400;
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section--warm {
  background: var(--color-surface);
}

.section--cream {
  background: linear-gradient(180deg, var(--color-bg), var(--color-surface), var(--color-bg));
}

/* ============================================================
   Header — 温暖半透明
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 253, 247, 0.97);
  box-shadow: var(--shadow-sm);
}

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

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

.header__logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-primary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.header__logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  font-weight: 500;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--color-primary);
  background: rgba(139, 94, 60, 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(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}

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

.header__dropdown a:hover {
  color: var(--color-primary);
  background: rgba(139, 94, 60, 0.05);
}

/* 头部右侧操作区 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: transparent;
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--color-gold);
  border-radius: 100px;
  transition: all var(--duration-normal) var(--ease-out);
}

.header__cta:hover {
  background: var(--color-gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   汉堡菜单（移动端）
   ============================================================ */
.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: 2px;
  background: var(--color-text);
  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: 360px;
  background: rgba(255, 253, 247, 0.99);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
}

.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(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  font-weight: 500;
}

.mobile-nav__link:hover {
  color: var(--color-primary);
  background: rgba(139, 94, 60, 0.04);
}

.mobile-nav__sub {
  padding-left: 16px;
  display: none;
}

.mobile-nav__sub.open {
  display: block;
}

.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 48, 39, 0.3);
  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;
}

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

.btn--primary {
  background: var(--color-gold);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-cta-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.btn--outline:hover {
  background: var(--color-gold);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(139, 94, 60, 0.05);
  color: var(--color-text-secondary);
  border: 1px solid transparent;
}

.btn--ghost:hover {
  background: rgba(139, 94, 60, 0.1);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--white {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}

.btn--white:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* 脉冲动画用于 CTA */
.btn--primary.pulse {
  animation: btnPulse 2.5s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 150, 62, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(200, 150, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 150, 62, 0); }
}

/* ============================================================
   卡片系统 — 暖白纸卡
   ============================================================ */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
}

.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.06);
}

.card__body {
  padding: 20px;
}

.card__tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(139, 94, 60, 0.08);
  border-radius: 100px;
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.card__price {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 8px;
}

/* ============================================================
   首页 — Hero Banner（温暖质感）
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: var(--color-surface);
}

.hero .swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(255, 253, 247, 0.1) 0%,
    rgba(255, 253, 247, 0.3) 50%,
    rgba(255, 249, 242, 0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 600px;
}

.hero__title .highlight {
  color: var(--color-gold);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Swiper 分页器 */
.hero-pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-text-muted);
  opacity: 0.4;
  transition: all var(--duration-normal);
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 52px;
  opacity: 1;
  background: var(--color-gold);
}

/* 滚动指示器 */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
}

/* ============================================================
   产品分类 — 5列暖卡
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.category-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.category-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(200, 150, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-gold);
  transition: all var(--duration-normal);
}

.category-card:hover .category-card__icon {
  background: var(--color-gold);
  color: #fff;
  transform: scale(1.08);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.category-card__desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================================
   产品展示 Grid
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.product-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface);
}

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

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

.product-card__body {
  padding: 18px;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.product-card__specs {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.product-card__link {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration-fast);
}

.product-card__link:hover {
  gap: 8px;
  color: var(--color-primary);
}

/* ============================================================
   工艺质感 — 横向滚动画廊
   ============================================================ */
.craft-swiper {
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 0 auto;
}

.craft-slide {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
}

.craft-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-slide__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(61, 48, 39, 0.85));
  color: #fff;
}

.craft-slide__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.craft-slide__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   客户案例
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.case-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

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

.case-card__body {
  padding: 20px;
}

.case-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.case-card__story {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}

/* ============================================================
   关于品牌（左图右文）
   ============================================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 装饰边框 */
.about-image::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--color-gold-light);
  border-radius: inherit;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-text p {
  color: var(--color-text-secondary);
  line-height: 1.85;
}

/* ============================================================
   新闻列表
   ============================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--duration-fast);
}

.news-item:hover {
  padding-left: 8px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item__image {
  width: 180px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
}

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

.news-item:hover .news-item__image img {
  transform: scale(1.06);
}

.news-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.news-item__date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.news-item__desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   CTA 区域
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-surface), var(--color-gold-pale), var(--color-surface));
  position: relative;
}

.cta-section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.cta-section__desc {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--color-surface);
}

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

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 249, 242, 0.5) 0%,
    rgba(255, 249, 242, 0.7) 50%,
    rgba(255, 253, 247, 0.95) 100%);
}

.inner-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.inner-banner__subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-secondary);
  transition: color var(--duration-fast);
}

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

.breadcrumb i {
  font-size: 0.6rem;
  color: var(--color-text-muted);
}

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

.list-header {
  text-align: center;
  margin-bottom: 48px;
}

.list-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

/* 子栏目过滤栏 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin-bottom: 36px;
  -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;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: #fff;
  background: var(--color-gold);
  border-color: var(--color-gold);
}

/* ============================================================
   详情页
   ============================================================ */
.detail {
  max-width: 860px;
  margin: 0 auto;
}

.detail-gallery {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

.detail-gallery .swiper-slide {
  aspect-ratio: 16/9;
}

.detail-gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.detail__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.detail__meta-row i {
  margin-right: 4px;
  color: var(--color-gold);
}

.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.detail__param {
  padding: 18px;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.detail__param-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

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

/* 详情正文 */
.detail__body {
  color: var(--color-text-secondary);
  line-height: 2;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
}

.detail__body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.detail__body p { margin-bottom: 16px; }

.detail__body h2, .detail__body h3, .detail__body h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-top: 32px;
  margin-bottom: 16px;
}

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

.tab-nav button {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tab-nav button:hover {
  color: var(--color-text);
}

.tab-nav button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* 上下篇导航 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  gap: 12px;
  flex-wrap: wrap;
}

.detail__pager a {
  color: var(--color-text-secondary);
  transition: color var(--duration-fast);
}

.detail__pager a:hover {
  color: var(--color-gold);
}

/* 相关推荐 */
.related-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 56px 0 24px;
  color: var(--color-text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   图库/案例网格
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

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

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(61, 48, 39, 0.75));
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ============================================================
   联系我们 / 定制咨询
   ============================================================ */
.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(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-fast);
}

.contact-info__item:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(200, 150, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-info__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* 表单卡片 */
.contact-form {
  padding: 36px;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

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

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

.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
}

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='%23A99D94' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ============================================================
   搜索页
   ============================================================ */
.search-box {
  max-width: 640px;
  margin: 0 auto;
}

.search-form-row {
  display: flex;
  gap: 10px;
}

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

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.search-form-row input {
  flex: 1;
  padding: 14px 20px;
  padding-left: 44px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text);
  font-size: 0.95rem;
  width: 100%;
}

.search-form-row input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
}

.search-result-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
}

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

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

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

.search-result-item__info {
  flex: 1;
  min-width: 0;
}

.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.search-result-item__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.pagination a:hover {
  background: rgba(200, 150, 62, 0.08);
  color: var(--color-gold);
  border-color: var(--color-gold-light);
}

.pagination .active {
  background: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
  font-weight: 600;
}

.pagination .disabled {
  color: var(--color-text-muted);
  pointer-events: none;
  background: var(--color-surface);
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}

.empty-state i {
  font-size: 3rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: block;
  opacity: 0.4;
}

.empty-state p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   Footer — 暖色背景
   ============================================================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
}

.footer__top-line {
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold), var(--color-primary), var(--color-gold), var(--color-gold-light));
}

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

.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 12px 0 16px;
}

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

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 94, 60, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--color-gold);
  color: #fff;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 18px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--color-gold);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.footer__contact-item i {
  color: var(--color-gold);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer__qrcode {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-light);
}

.footer__bottom {
  border-top: 1px solid var(--color-border-light);
  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 24px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a {
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

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

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
}

.friend-links__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  font-weight: 500;
}

.friend-links a {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  transition: all var(--duration-fast);
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(139, 94, 60, 0.04);
}

.friend-links a:hover {
  color: var(--color-gold);
  background: rgba(200, 150, 62, 0.08);
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  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(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
}

/* 在线客服按钮 */
.online-service {
  position: fixed;
  right: 20px;
  bottom: 136px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 80;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
  animation: onlinePulse 3s ease-in-out infinite;
}

.online-service:hover {
  background: var(--color-gold);
  transform: scale(1.1);
}

@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 94, 60, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(139, 94, 60, 0); }
}

/* ============================================================
   暖色装饰
   ============================================================ */
.section-decor {
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 40px;
}

.section-decor span {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--color-gold);
  opacity: 0.5;
  margin: 0 6px;
  vertical-align: middle;
}

.section-decor i {
  color: var(--color-gold);
  font-size: 0.85rem;
  vertical-align: middle;
  opacity: 0.6;
}

/* ============================================================
   动画系统
   ============================================================ */

/* 淡入上移 */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

/* 轻浮动 */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.gentle-float {
  animation: gentleFloat 4s ease-in-out infinite;
}

/* 图片hover光泽扫过 */
@keyframes shimmerSweep {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

.shimmer-overlay {
  position: relative;
  overflow: hidden;
}

.shimmer-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
}

.shimmer-overlay:hover::after {
  animation: shimmerSweep 0.8s ease-in-out;
}

/* AOS 覆盖 */
[data-aos] {
  transition-timing-function: var(--ease-out);
}

/* ============================================================
   响应式 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root {
    --section-py: 64px;
    --section-py-sm: 44px;
  }

  .header__nav,
  .header__actions .header__cta {
    display: none;
  }

  .header__actions {
    gap: 4px;
  }

  .hamburger {
    display: flex;
  }

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

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

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

  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

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

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

  .news-item {
    flex-direction: column;
  }

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

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --section-py: 52px;
    --section-py-sm: 36px;
  }

  /* 防止溢出导致的左偏 */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* 全部区块居中 */
  .section, .container, .hero__content {
    margin-left: auto;
    margin-right: auto;
  }

  /* 容器减小内边距 */
  .container {
    padding: 0 16px;
  }

  .hero {
    height: 85vh;
    min-height: 480px;
  }

  .hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding: 0 8px;
    max-width: 100%;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    padding: 0 8px;
    max-width: 100%;
  }

  .hero__content {
    align-items: center;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* 按钮适配 */
  .btn {
    padding: 10px 20px;
    font-size: 0.88rem;
  }

  /* 区块标题居中 */
  .section-title, .section-subtitle {
    max-width: 100%;
    padding: 0 4px;
  }

  .inner-banner {
    height: 240px;
  }

  .inner-banner__content {
    padding: 0 16px;
    text-align: center;
  }

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

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

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

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

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

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

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

  /* 关于我们 — 单列 */
  .about-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-text {
    text-align: center;
  }

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

  .news-item__image {
    width: 100%;
    height: 160px;
  }

  /* 联系页 — 单列 */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* 定制流程 — 双列 */
  #inquirySteps {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .card__body {
    padding: 14px;
  }

  .contact-form {
    padding: 20px;
  }

  .tab-nav button {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .search-result-item {
    flex-direction: column;
  }

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

  /* 固定按钮位置调整 */
  .online-service {
    right: 12px;
    bottom: 120px;
  }

  .back-top {
    right: 12px;
    bottom: 64px;
  }

  .category-card {
    padding: 20px 10px;
  }

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

  /* 表单响应式 */
  .contact-form .form-group {
    margin-bottom: 12px;
  }

  /* 按钮全宽 */
  .hero__actions .btn {
    width: auto;
    min-width: 140px;
  }
}

/* ============================================================
   响应式 — 小屏手机 (< 375px)
   ============================================================ */
@media (max-width: 374px) {
  body { font-size: 15px; }

  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   偏好：减少动画
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile refinement: preserve the warm photo-book identity. */
@media(max-width:767px){
 :root{--section-py:30px;--section-py-sm:24px}
 .header{height:60px;z-index:140}.header__inner{padding:0 14px}.header__logo{min-width:0;flex-shrink:1;gap:8px}.header__logo-text{min-width:0}.header__logo-name{font-size:15px}.header__logo-sub{font-size:9px;letter-spacing:.02em}.header__logo-icon{width:34px;height:34px;flex-shrink:0}.hamburger{flex-shrink:0}
 .hero{height:350px;min-height:0}.hero__content{padding-top:52px}.hero__title{font-size:28px;margin-bottom:12px}.hero__subtitle{font-size:13px;line-height:1.8;margin-bottom:20px}.hero__actions{gap:10px;flex-wrap:nowrap}.hero__actions .btn{min-width:0;padding:10px 16px;font-size:13px}.hero__scroll{display:none}.hero-pagination{bottom:18px;left:0!important;transform:none!important;width:100%;justify-content:center}
 .section[style*="padding-top"]{padding-top:30px!important}.section-title{font-size:23px;margin-bottom:10px}.section-tag{font-size:10px;margin-bottom:8px}.section-subtitle{font-size:13px;line-height:1.7}
 .section>.container>[style*="margin-bottom:48px"],.section>.container>[style*="margin-bottom:36px"]{margin-bottom:20px!important}
 .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card{padding:14px 9px}.category-card__icon{width:34px;height:34px;font-size:17px;margin-bottom:8px}.category-card__name{font-size:14px}.category-card__desc{font-size:11px;overflow-wrap:anywhere}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card__body{padding:12px}.product-card__title{font-size:15px;line-height:1.5}.product-card__specs{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.product-card__link{font-size:12px}.product-card__image{aspect-ratio:1.2}
 .case-grid{grid-template-columns:minmax(0,1fr);gap:12px}.case-card{display:grid;grid-template-columns:32% minmax(0,1fr)}.case-card__image{height:100%;min-height:115px;aspect-ratio:auto}.case-card__body{padding:12px}.case-card__title{font-size:15px;line-height:1.5}.case-card__story{font-size:12px;line-height:1.7}
 .news-item{display:grid;grid-template-columns:29% minmax(0,1fr);gap:12px;padding:14px 0}.news-item__image{width:100%;height:90px}.news-item__info{min-width:0}.news-item__title{font-size:15px;line-height:1.5}.news-item__desc{font-size:12px;line-height:1.7}.news-item__date{font-size:11px}
 .about-section{gap:20px}.about-image img{max-height:210px;object-fit:cover}.about-text{font-size:14px}.about-text p{line-height:1.8}.craft-slide img{max-height:220px;object-fit:cover}.craft-swiper{padding-bottom:0}
 .cta-section{padding:30px 0}.cta-section__title{font-size:22px}.cta-section__desc{font-size:13px;line-height:1.8}.cta-section .btn{padding:12px 24px!important;font-size:14px!important}
 .footer__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 14px;padding:26px 16px}.footer__grid>div{min-width:0}.footer__grid>div:first-child,.footer__grid>div:nth-child(3){grid-column:1/-1}.footer__grid>div:nth-child(2){grid-column:1/-1}.footer__links{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px}.footer__brand-desc{font-size:12px}.footer__contact-item{font-size:12px;overflow-wrap:anywhere}.footer__col-title{margin-bottom:10px}.footer__bottom-inner{font-size:11px}
 .inner-banner{height:185px!important}.inner-banner__content{padding:60px 16px 12px}.inner-banner__title{font-size:22px;line-height:1.4}.inner-banner__subtitle{font-size:12px}.breadcrumb{flex-wrap:wrap;font-size:11px;padding-top:10px;padding-bottom:10px;overflow-wrap:anywhere}
 .list-header{margin-bottom:20px}.list-grid,.related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card__body{padding:12px}.card__title{font-size:15px;line-height:1.5}.card__price,.card__tag{overflow-wrap:anywhere}.filter-bar{flex-wrap:wrap;gap:7px}.pagination{flex-wrap:wrap}
 .detail__title{font-size:23px}.detail__meta-row{flex-wrap:wrap}.detail__params{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail__param{padding:12px}.detail__param-value{overflow-wrap:anywhere}.detail-gallery{margin-bottom:22px}.detail__body{font-size:14px;line-height:1.85;overflow-wrap:anywhere}.detail__body>*{max-width:100%}.detail__body img{max-width:100%!important;height:auto!important}.detail__body table{display:block;max-width:100%;overflow:auto}.detail__pager{flex-wrap:wrap;gap:12px}.detail__pager a{overflow-wrap:anywhere}
 .tab-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.tab-nav button{padding:9px 2px;font-size:12px;min-height:44px;white-space:nowrap}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #productInquiry{margin-top:26px!important;padding:16px!important;scroll-margin-top:76px}.contact-form{padding:16px}.js-form-validate>[style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}.form-group{min-width:0}.form-control{min-width:0;max-width:100%;font-size:16px}.contact-grid{gap:22px}.contact-info__value{overflow-wrap:anywhere}
 .container>[style*="repeat(4,1fr)"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-bottom:24px!important}.back-top{width:36px;height:36px;bottom:16px;right:12px}.online-service{width:38px;height:38px;bottom:62px;right:12px}
 [data-aos]{transform:none!important;opacity:1!important}
}
@media(max-width:1023px){.header{z-index:140}.mobile-nav{width:min(320px,calc(100vw - 48px));height:100dvh}.mobile-nav__inner{padding:80px 18px 20px}.mobile-nav__link{padding:11px 12px}.mobile-nav__sub a{padding:10px 12px}}
@media(max-width:359px){.product-grid,.list-grid,.related-grid{grid-template-columns:minmax(0,1fr)}.product-card{display:grid;grid-template-columns:34% minmax(0,1fr)}.product-card__image{height:100%;aspect-ratio:auto}.product-card__body{min-width:0}}
