/**
 * VASTWOOL 华仕唯 — 高端商务男装定制品牌
 * 深蓝黑基底 + 金色点缀 + 银灰边框
 * 克制排版，如高级定制画册
 * 纯原生 CSS，无框架依赖
 */

/* ============================================================
   CSS 变量体系
   ============================================================ */
:root {
  /* 基底色 — 深邃深蓝 */
  --bg-deep: #0D1520;
  --bg-primary: #1A2A3A;
  --bg-surface: #1F2D3D;
  --bg-card: #233344;
  --bg-card-hover: #2A3D50;
  --bg-input: #1A2836;
  --bg-overlay: rgba(13, 21, 32, 0.85);

  /* 金色点缀 */
  --gold: #C9A96E;
  --gold-light: #D4BC8B;
  --gold-dark: #A8894C;
  --gold-dim: rgba(201, 169, 110, 0.12);
  --gold-glow: rgba(201, 169, 110, 0.25);

  /* 银色 */
  --silver: #A8B4C0;
  --silver-dim: rgba(168, 180, 192, 0.08);
  --silver-border: rgba(168, 180, 192, 0.15);

  /* 文字色阶 */
  --text-primary: #E8ECF0;
  --text-secondary: #95A3B3;
  --text-muted: #5A6A7A;
  --text-inverse: #0D1520;

  /* 边框 */
  --border-subtle: rgba(168, 180, 192, 0.08);
  --border-card: rgba(168, 180, 192, 0.12);
  --border-gold: rgba(201, 169, 110, 0.2);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.08);

  /* 圆角 — 小圆角精致感 */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* 间距 */
  --section-py: 100px;
  --section-py-sm: 60px;
  --container-max: 1200px;
  --header-h: 72px;
  --gutter: 24px;      /* .container 横向内边距，各断点覆盖 */

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

  /* 字体 */
  --font-heading: 'Noto Serif SC', 'STSong', 'Songti SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
}

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

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

body {
  background: var(--bg-deep);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 全局链接 */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

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

/* 选中色 */
::selection {
  background: var(--gold-dim);
  color: var(--gold-light);
}

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

/* ============================================================
   容器 & Section
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

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

.section--alt {
  background: rgba(26, 42, 58, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Section 标签 & 标题 */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ============================================================
   按钮体系
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn--outline-light {
  background: transparent;
  color: var(--silver);
  border-color: var(--silver-border);
}
.btn--outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: 8px 16px;
}
.btn--ghost:hover { color: var(--gold); }

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

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

/* 脉冲按钮（预约CTA） */
.btn--pulse {
  animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50% { box-shadow: 0 0 0 12px rgba(201, 169, 110, 0); }
}

/* ============================================================
   Header — 深色半透明固定顶部
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 21, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(13, 21, 32, 0.98);
  box-shadow: var(--shadow-md);
}

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

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

.header__logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-xs);
}

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

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.header__logo-sub {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  border-radius: var(--radius-xs);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--text-primary);
}

.header__nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* 导航下拉 */
.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: 6px 0;
  background: rgba(31, 45, 61, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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);
}

.header__dropdown a:hover {
  color: var(--gold);
  background: rgba(201, 169, 110, 0.06);
}

/* Header 右侧 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__cta {
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-xs);
  letter-spacing: 0.06em;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

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

/* 汉堡菜单 — PC端隐藏，移动端绝对定位 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 120;
  transition: right var(--duration-normal) var(--ease-out);
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

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

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

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

.mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

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

/* ============================================================
   Hero / 全屏 Banner
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__swiper {
  position: absolute;
  inset: 0;
}

.hero__swiper .swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 21, 32, 0.55) 0%,
    rgba(13, 21, 32, 0.35) 40%,
    rgba(13, 21, 32, 0.7) 100%
  );
  z-index: 1;
}

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

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

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

/* 选择器带 .hero 是为了压过 Swiper 的 .swiper-pagination-horizontal（(0,1,0)）。
   本表只声明了 left/bottom，没声明 width —— 于是 Swiper 的 width:100% 独占生效，
   再叠加本表的 translateX(-50%)，分页器整体左移半个屏宽，跑到屏幕外。
   这里把三项都显式收回，不再依赖两张样式表的加载先后。 */
.hero .hero__pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  right: auto;
  width: auto;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  opacity: 1;
  transition: all var(--duration-normal);
}

.hero__pagination .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* 滚动指示器 */
.hero__scroll {
  position: absolute;
  bottom: 80px;
  right: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
  transform: translateY(-100%);
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   卡片组件
   ============================================================ */
/* 产品卡片 */
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
}

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

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

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

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

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card__price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
}

/* 新闻卡片 */
.news-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.news-card:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-gold);
}

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

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

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

.news-card__body {
  padding: 18px 20px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.news-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 评价卡片 */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--duration-normal) var(--ease-out);
}

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

.review-card__quote {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
}

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

.review-card__role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   网格系统
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

/* ============================================================
   特色区块
   ============================================================ */

/* 服务亮点 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.feature-card__icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 分类网格（极简目录） */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

.category-item {
  background: var(--bg-card);
  padding: 36px 20px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.category-item:hover {
  background: var(--bg-card-hover);
}

.category-item__icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}

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

.category-item__count {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* 关于区块 */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--silver-border);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slower) var(--ease-out);
}

.about-image:hover img { transform: scale(1.03); }

.about-text .section-title {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* 统计数字 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

.stat-item {
  background: var(--bg-card);
  padding: 32px 20px;
  text-align: center;
  transition: all var(--duration-normal);
}

.stat-item:hover { background: var(--bg-card-hover); }

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-item__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* 面料细节 Swiper */
.fabric-slide {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--silver-border);
}

.fabric-slide img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.fabric-slide__caption {
  padding: 16px;
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

/* CTA 区块 */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ============================================================
   内页通用
   ============================================================ */
.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
}

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

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 21, 32, 0.75);
}

.inner-banner__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--header-h);
}

.inner-banner__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.inner-banner__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .fa-solid { margin: 0 6px; font-size: 0.6rem; }

/* 子栏目过滤栏 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.filter-bar a {
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--duration-fast);
}

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

/* 列表头部 */
.list-header {
  text-align: center;
  margin-bottom: 40px;
}

.list-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

.detail__header {
  margin-bottom: 32px;
}

.detail__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 14px;
}

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

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

/* 产品详情参数卡片 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  margin-bottom: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.detail__param {
  background: var(--bg-card);
  padding: 20px 16px;
  text-align: center;
}

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

.detail__param-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail__body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 2;
}

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

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

.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* 相关推荐 */
.related-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 24px;
}

.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;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.contact-info__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

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

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 36px;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--duration-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6A7A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.required { color: var(--gold); }

/* ============================================================
   搜索
   ============================================================ */
.search-box { padding: 20px 0; }

.search-form-row {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

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

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

.search-input-wrap input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: var(--bg-input);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--gold);
}

.search-result-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-fast);
}

.search-result-item:hover {
  padding-left: 12px;
}

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

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

.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

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

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

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  transition: all var(--duration-fast);
}

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

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

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

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

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

/* ============================================================
   底部 Footer
   ============================================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 60px;
}

.footer__top-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 50px;
  opacity: 0.3;
}

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

.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

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

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--silver-border);
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

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

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

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

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

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

.footer__contact-item i {
  color: var(--gold);
  font-size: 0.8rem;
  margin-top: 3px;
}

.footer__qrcode {
  width: 100px;
  height: 100px;
  background: var(--gold-dim);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* 友情链接 */
.friend-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}

.friend-links__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

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

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

/* 版权栏 */
.footer__bottom {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.footer__bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 返回顶部 */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.back-top:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

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

.online-service:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(201, 169, 110, 0.25);
}

/* 预约页步骤 */
.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.booking-step {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
}

.booking-step__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.booking-step h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.booking-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 预约表单 */
.booking-form-card {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: 70px;
    --section-py-sm: 45px;
  }

  .header__nav { display: none !important; }
  .header__actions { display: none !important; }
  .header__inner { position: relative !important; }
  .hamburger {
    display: flex !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(13, 21, 32, 0.9) !important;
    border-radius: 4px !important;
    padding: 4px !important;
    z-index: 110 !important;
  }

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

  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .booking-steps { grid-template-columns: 1fr; }
  .detail__params { grid-template-columns: repeat(2, 1fr); }
  .news-card { grid-template-columns: 120px 1fr; }
  .hero__title { font-size: 2rem; }

  .inner-banner { height: 240px; }
  .inner-banner__title { font-size: 1.6rem; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 40px;
    --section-py-sm: 26px;
    --header-h: 56px;
    --gutter: 16px;
  }

  /* 锚点跳转不被固定头部盖住 */
  html { scroll-padding-top: calc(var(--header-h) + 8px); }

  /* 手机端 Logo 截断 + 汉堡防溢出 */
  .header__logo {
    max-width: calc(100vw - 90px) !important;
    min-height: 44px; /* 命中区：图标只有 40px 高 */
  }
  .header__logo-text { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  .header__inner { padding-right: 56px !important; }

  /* 汉堡是手机端唯一导航入口，命中区补到 44px */
  .hamburger {
    width: 44px !important;
    height: 44px !important;
    right: 6px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ------------------------------------------------------------
     区块标题组 — 压掉上下留白
     （模板里标题外层是内联 margin-bottom，需 !important 覆盖）
     ------------------------------------------------------------ */
  .section > .container > div[style*="margin-bottom:48px"],
  .section > .container > div[style*="margin-bottom:40px"] {
    margin-bottom: 20px !important;
  }

  .section-tag {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.45rem;
  }

  .section-title { font-size: 1.28rem; margin-bottom: 0.5rem; }

  .section-subtitle { font-size: 0.82rem; line-height: 1.6; }

  /* ------------------------------------------------------------
     Hero — 从满屏收到约 6 成屏
     ------------------------------------------------------------ */
  .hero {
    height: 62vh;
    min-height: 400px;
    max-height: 500px;
  }

  .hero__title { font-size: 1.5rem; }

  .hero__subtitle { font-size: 0.85rem; }

  .hero__actions { flex-direction: row; width: auto; gap: 10px; }

  .hero__actions .btn {
    width: auto;
    flex: 1 1 0;
    justify-content: center;
    padding: 12px 12px;
    font-size: 0.8rem;
  }

  .hero__scroll { display: none; }

  .hero .hero__pagination { bottom: 20px; }

  /* ------------------------------------------------------------
     首页展示区块 — 由竖向堆叠改为横向 snap 卡片流
     （.grid-3 在列表页也用到，必须用 body.home 限定，否则列表页也变横滑）
     ------------------------------------------------------------ */
  body.home .grid-3,
  body.home .features,
  body.home .category-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;
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 12px;
    /* ★ 有 scroll-snap-align:start 时，吸附位置是"子项起点对齐滚动口起点"，
       不认 padding —— 缺了 scroll-padding，容器会自己向右滚 var(--gutter)，
       把第一张卡切掉左半边（实测每个卡片流 scrollLeft 都是 16）。 */
    scroll-padding-inline: var(--gutter);
    background: transparent; /* 中和 category-grid 用来画 1px 描边的底色 */
  }

  body.home .grid-3::-webkit-scrollbar,
  body.home .features::-webkit-scrollbar,
  body.home .category-grid::-webkit-scrollbar { display: none; }

  body.home .grid-3 > *,
  body.home .features > *,
  body.home .category-grid > * {
    flex: 0 0 auto;
    min-width: 0;
    scroll-snap-align: start;
  }

  body.home .grid-3 > * { flex-basis: 66%; }

  body.home .grid-3 > .review-card { flex-basis: 84%; }

  body.home .features > * { flex-basis: 76%; }

  body.home .category-grid > * { flex-basis: 44%; }

  /* 卡片流圆点指示器（由 main.js 在确实溢出时插入）
     圆点本身只有 6px，够不到 24px 的最小命中区，
     所以按钮撑到 28×32，视觉圆点画在 ::before 上。 */
  .card-rail__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 8px;
  }

  .card-rail__dot {
    position: relative;
    width: 28px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .card-rail__dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--silver-border);
    transition: background var(--duration-fast), width var(--duration-fast);
  }

  .card-rail__dot.is-active::before {
    width: 16px;
    background: var(--gold);
  }

  /* 卡片内部收一收 */
  .card__body { padding: 14px; }

  .card__title { font-size: 0.98rem; }

  .card__desc { font-size: 0.78rem; }

  .review-card { padding: 22px 18px; }

  .review-card__quote {
    font-size: 0.86rem;
    line-height: 1.7;
    margin-bottom: 14px;
    padding-left: 14px;
  }

  .feature-card { padding: 24px 18px; }

  .feature-card__icon { font-size: 1.5rem; margin-bottom: 12px; }

  .feature-card__title { font-size: 0.98rem; }

  .feature-card__desc { font-size: 0.8rem; line-height: 1.65; }

  /* 分类：横滑后 1px 描边网格失效，改成每项自带描边 */
  body.home .category-grid { gap: 10px; }

  body.home .category-grid > .category-item {
    border: 1px solid var(--silver-border);
    border-radius: var(--radius-sm);
    padding: 20px 12px;
  }

  .category-item__icon { font-size: 1.3rem; margin-bottom: 8px; }

  .category-item__name { font-size: 0.88rem; }

  .category-item__count { font-size: 0.7rem; }

  /* ------------------------------------------------------------
     关于 · 匠人 — 竖排
     ------------------------------------------------------------ */
  .about-split { gap: 20px; }

  .about-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .about-text .section-title { margin-bottom: 12px; }

  .about-text p { font-size: 0.86rem; line-height: 1.75; }

  /* ------------------------------------------------------------
     新闻 · 资讯 — 保持「左图右文」一行
     （原来的手机端把它拆成上下两段 + 16/9 大图，
       3 条就要占 1000px 以上）
     ------------------------------------------------------------ */
  .news-card { grid-template-columns: 104px 1fr; gap: 12px; }

  /* 桌面端是上下两段式（图 4/3 在上、文在下），手机端改成左图右文。
     这里要撤掉 aspect-ratio：留着它图片高度被钉死在 104px，
     而正文那一列更高，左列下方就会空出一块。改成跟着行高拉伸。 */
  .news-card__image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 104px;
  }

  .news-card__body {
    padding: 12px 14px 12px 0;
    gap: 5px;
  }

  .news-card__title { font-size: 0.9rem; }

  .news-card__desc { font-size: 0.78rem; line-height: 1.6; }

  /* ------------------------------------------------------------
     数字条 — 保留 2×2 描边网格，只压内边距
     ------------------------------------------------------------ */
  .stats { grid-template-columns: 1fr 1fr; }

  .stat-item { padding: 20px 12px; }

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

  .stat-item__label { font-size: 0.75rem; }

  /* ------------------------------------------------------------
     CTA
     ------------------------------------------------------------ */
  .cta-section { padding: 44px 0; }

  .cta-section__title { font-size: 1.25rem; }

  /* ------------------------------------------------------------
     Footer — 四列改两列，品牌块跨两列
     ------------------------------------------------------------ */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    padding: 0 var(--gutter);
  }

  .footer__grid > *:first-child { grid-column: 1 / -1; }

  /* 第 4 列（关注我们）在 1fr 1fr 下会独占第三行、右边空一格。
     让它横跨两列，二维码和说明文字并排。 */
  .footer__grid > *:nth-child(4) {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 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__brand-desc { font-size: 0.8rem; margin-bottom: 14px; }

  .footer__col-title { font-size: 0.85rem; margin-bottom: 12px; }

  .footer__links { gap: 7px; }

  /* WCAG 2.5.8 最小点按区 24×24：0.8rem 下这一行正好 23px，差一像素。
     补最小高度即可，视觉上看不出差别。 */
  .footer__links a { font-size: 0.8rem; min-height: 24px; display: inline-flex; align-items: center; }

  .footer__contact-item { font-size: 0.8rem; margin-bottom: 8px; }

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

  /* 版权栏里的备案号 / 网站地图是纯文字链，只有 23px 高，补两像素 */
  .footer__bottom-inner a { padding: 2px 0; }

  /* 合作面料品牌 —— 20 条链接换行会堆四五排，改成一行横滑；
     顺手把 23px 高的纯文字链补到 24px 以上（WCAG 2.5.8 最小命中区） */
  .friend-links {
    flex-wrap: nowrap;
    gap: 14px;
    padding: 10px 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; }

  .friend-links a { padding: 4px 0; }

  /* ------------------------------------------------------------
     内页
     ------------------------------------------------------------ */
  .inner-banner { height: 132px; }

  .inner-banner__title { font-size: 1.15rem; }

  .filter-bar {
    gap: 6px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-bar a { flex: 0 0 auto; padding: 8px 14px; font-size: 0.8rem; }

  .search-form-row { flex-direction: column; }

  /* 搜索结果保持一行，不堆成上下 */
  .search-result-item { flex-direction: row; gap: 12px; }

  .search-result-item__thumb {
    width: 104px;
    height: 84px;
    flex: 0 0 104px;
  }

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

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

  .contact-form-card { padding: 20px 16px; }

  .booking-form-card { padding: 20px 16px; }

  /* iOS 聚焦时若字号 < 16px 会强制放大页面 */
  .form-control { font-size: 16px; }

  .back-top { width: 44px; height: 44px; right: 12px; bottom: 20px; }
}

/* ============================================================
   AOS 微调
   ============================================================ */
[data-aos] {
  transition-timing-function: var(--ease-out) !important;
}

/* ============================================================
   图片懒加载占位
   ============================================================ */
img[data-src] {
  opacity: 0;
  transition: opacity 0.4s ease;
  background: var(--bg-surface);
}

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

/* 灯箱调整 */
.fancybox-bg { background: rgba(13, 21, 32, 0.95); }

/* ============================================================
   偏好：减少动画
   ============================================================ */
@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;
  }
}
