/* cache-bust 2026-07-31 15:12 (slogan 呼吸回滚) */
/* ============================================
   SEA MIST PHOTOGRAPHY — Pure Portfolio
   ============================================ */

:root {
  --bg: #FAF8F5;
  --text: #5C4F42;
  --text-light: #F2EDE8;
  --text-muted: #8A8279;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-quart: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);  /* v11-strict FLIP 动画用，2026-08-06 补 */
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* --- Logo (fixed 吸顶 + 毛玻璃) --- */
.logo-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;   /* 2026-08-14 改：竖排（Logo 在上、抽屉在下），支持下拉展开 */
  justify-content: flex-start;
  align-items: center;
  height: 110px;
  padding: 0 16px;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 8px 8px;  /* 底部圆角，跟图片 .gallery__block 一致 */
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;          /* 抽屉展开时内容裁剪在栏内 */
  transition: height 0.28s var(--ease), transform 0.28s var(--ease);  /* 抽屉展开/回弹动画 */
  touch-action: pan-y;       /* 2026-08-14 新增：允许垂直滚动，拖拽由 JS 接管 */
}
/* 吸顶抽屉展开：110px → 260px（3 个二维码横排 + 名称） */
.logo-wrap.open {
  height: 260px;
}

/* ⭐ 下拉提示箭头（2026-08-14 新增：钝角无尾巴 V 形，常驻呼吸闪烁——弱隐弱现） ⭐ */
.logo-grip {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 12px;
  height: 7px;
  margin-left: -6px;
  pointer-events: none;
  animation: logo-grip-breathe 2.4s ease-in-out infinite;  /* 呼吸闪烁 */
  /* V 形（钝角、无尾巴）：两条 border 拼一个下箭头 */
}
.logo-grip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(92, 79, 66, 0.55);
  border-bottom: 1.5px solid rgba(92, 79, 66, 0.55);
  transform: rotate(45deg) translate(-1px, -1px);
}
/* 呼吸动画：弱隐弱现 */
@keyframes logo-grip-breathe {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.75; }
}
.logo-wrap.open .logo-grip {
  animation: none;
  opacity: 0;   /* 展开后隐藏箭头 */
}
/* ⭐ /下拉提示箭头 ⭐ */

.logo {
  width: auto;
  max-height: 80px;
  height: auto;
  display: block;
  margin-top: 15px;   /* 2026-08-14 改：Logo 垂直居中（原来 flex 居中，现在竖排需要手动定位） */
  flex-shrink: 0;
}

/* ⭐ 吸顶抽屉：三个二维码横排（2026-08-14 新增） ⭐ */
.logo-drawer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  padding: 14px 16px 18px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s var(--ease), transform 0.28s var(--ease);
  pointer-events: none;
}
.logo-wrap.open .logo-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.logo-drawer__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.logo-drawer__qr img {
  width: 72px;        /* 小尺寸：比联系页(160px)小一倍多 */
  height: 72px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}
.logo-drawer__qr span {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #000;   /* 2026-08-14 改：纯黑色（用户要求） */
  white-space: nowrap;
}
/* ⭐ 客资收集表单（2026-08-23 新增）：抽屉底部——按钮↔输入框 ↔ 绿色对号 三段切换 ⭐ */
.logo-lead {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px 16px;
  margin-top: -4px;   /* 与二维码表单收紧 */
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.28s var(--ease);
  pointer-events: none;
}
/* 全局 [hidden] 兜底：确保 hidden 属性真正生效（否则 .logo-lead__form/__ok 的
   display:flex 会覆盖 hidden，导致按钮/输入框/对号全显——2026-08-23 修复） */
[hidden] { display: none !important; }
.logo-wrap.open .logo-lead {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* 常态按钮：与「联系我们」同款浅底胶囊（字体统一抽屉 10px，2026-08-23 缩小） */
.logo-lead__btn {
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(92, 79, 66, 0.06);
  color: #5c4f42;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, opacity 0.25s var(--ease), transform 0.15s;
  white-space: nowrap;
}
.logo-lead__btn:hover { background: rgba(92, 79, 66, 0.10); }
.logo-lead__btn:active { transform: scale(0.96); }
/* 输入态：输入框 + 确认（横排，紧凑；字体统一 10px，2026-08-23 缩小） */
.logo-lead__form {
  display: flex;
  align-items: center;
  gap: 6px;
  animation: lead-in 0.25s var(--ease);
}
.logo-lead__input {
  width: 130px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #333;
  padding: 5px 11px;
  border: 1px solid rgba(92, 79, 66, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s;
}
.logo-lead__input:focus { border-color: rgba(92, 79, 66, 0.5); }
.logo-lead__input::placeholder { color: #b9b0a4; letter-spacing: 0.05em; }
.logo-lead__submit {
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 5px 13px;
  border: none;
  border-radius: 999px;
  background: rgba(92, 79, 66, 0.85);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, transform 0.15s;
}
.logo-lead__submit:hover { background: rgba(92, 79, 66, 1); }
.logo-lead__submit:active { transform: scale(0.95); }
.logo-lead__submit:disabled { opacity: 0.5; cursor: default; }
/* 成功态：绿色对号 + 文案（字体统一 10px，2026-08-23 缩小） */
.logo-lead__ok {
  display: flex;
  align-items: center;
  gap: 5px;
  animation: lead-in 0.3s var(--ease);
}
.logo-lead__check {
  font-size: 13px;
  font-weight: 700;
  color: #22a06b;   /* 绿色对号 */
  line-height: 1;
}
.logo-lead__oktext {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #22a06b;
  white-space: nowrap;
}
/* 失败提示 */
.logo-lead__err {
  font-size: 10px;
  color: #d64545;
  animation: lead-in 0.25s var(--ease);
}
@keyframes lead-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ⭐ /吸顶抽屉 ⭐ */

/* 旧浏览器 fallback：毛玻璃不支持时加深底色（避免 logo 跟图片糊在一起） */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .logo-wrap { background: rgba(255, 255, 255, 0.7); }
}

/* --- Gallery (JS-masonry absolute positioning) --- */
/* max-width 1100：保持 3 列居中，左右留白，照片大小不变 */
.gallery {
  padding: 0 32px 110px;  /* 2026-08-13 改：底部给吸底栏(50px)留出空间，最后一行客片不被遮挡 */
  max-width: 1100px;
  margin: -50px auto 0;
  position: relative;
  z-index: 6;
}

/* --- Gallery Item --- */
.gallery__item {
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.gallery__item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2026-08-13 标签过滤淡出：不需要的图块淡出消失 */
.gallery__item--fadeout {
  opacity: 0 !important;
  transform: translateY(24px) scale(0.96) !important;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease) !important;
}

.gallery__block {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
  background: var(--text-muted);

  /* morandi-placeholder: 色块哑光质感（图片加载后被img盖住不影响照片） */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.04);
}

.gallery__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  /* morandi-fade: opacity + 极轻 scale 双属性过渡，GPU 合成，避免颜色断层和卡帧 */
  transition: opacity 0.55s var(--ease), transform 0.65s var(--ease);
  /* 2026-09-13 性能：去掉常驻 will-change——1061 张图各自申请合成层会白烧内存/图层化时间；
     opacity+transform 过渡本身就走合成，无需常驻提升 */
  backface-visibility: hidden;
  image-orientation: from-image;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.gallery__img.loaded {
  opacity: 1;
  transform: scale(1);
}

.gallery__item:hover .gallery__block {
  transform: scale(1.015);
}

.gallery__date {
  display: none;  /* 缩略图隐藏日期，点开大图再看 */
}

/* --- Lightbox (flex column, FLIP-driven image) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(42, 40, 38, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  touch-action: pan-y;
  padding: 24px 16px;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

.lightbox__img {
  border-radius: 2px;
  max-width: 80vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  image-orientation: from-image;
  transition: opacity 0.25s var(--ease), transform 0.4s var(--ease-out-expo);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform, opacity;
}

.lightbox.open .lightbox__img {
  opacity: 1;
}

.lightbox__fallback {
  border-radius: 2px;
  transition: opacity 0.3s var(--ease);
}

.lightbox__date {
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(242, 237, 232, 0.6);
  user-select: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease) 0.05s;
}

.lightbox.open .lightbox__date {
  opacity: 1;
}

/* --- Lightbox Actions (close button) --- */
.lightbox__actions {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.25s var(--ease) 0.1s;
}

.lightbox.open .lightbox__actions {
  opacity: 1;
}

/* --- Lightbox Close --- */
.lightbox__close {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  padding: 0;
  outline: none;
}

.lightbox__close:hover,
.lightbox__close:active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox__close::before,
.lightbox__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: rgba(242, 237, 232, 0.7);
  transition: background 0.2s var(--ease);
}

.lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.lightbox__close:hover::before,
.lightbox__close:hover::after {
  background: rgba(242, 237, 232, 0.95);
}

/* --- Slogan --- */
.slogan {
  display: flex;
  justify-content: center;
  padding: 64px 24px;
  margin-top: 40px;
}

.slogan__img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

/* --- Back to top button --- */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 66px;  /* 2026-08-13 改：抬高到吸底栏(50px)之上 */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(60, 50, 40, 0.65);
  color: rgba(242, 237, 232, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.3s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.back-to-top.show {
  display: flex;
  opacity: 1;
}

.back-to-top:hover,
.back-to-top:active {
  background: rgba(60, 50, 40, 0.85);
}

/* --- Responsive --- */
@media (max-width: 1400px) {
  .gallery {
    padding: 0 32px 110px;  /* 2026-08-13 改：给吸底栏留空间 */
  }
}

@media (max-width: 1024px) {
  .gallery {
    padding: 0 24px 90px;  /* 2026-08-13 改：给吸底栏留空间 */
  }
  .logo-wrap {
    height: 90px;
  }
  .logo-wrap.open {
    height: 240px;   /* 2026-08-14 改：抽屉展开高度（平板） */
  }
  .logo {
    max-height: 64px;
  }
}

@media (max-width: 640px) {
  .gallery {
    padding: 0 24px 90px;  /* 2026-08-13 改：给吸底栏留空间（16→24 保持 iPhone 舒适） */
    margin-top: -30px;
  }
  .gallery__item {
    transform: translateY(16px);
  }
  .logo-wrap {
    height: 70px;
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
  }
  .logo-wrap.open {
    height: 230px;   /* 2026-08-14 改：抽屉展开高度（手机） */
  }
  .logo {
    max-height: 52px;
  }
  .logo-drawer {
    gap: 18px;
    padding: 12px 10px 16px;
  }
  .logo-drawer__qr img {
    width: 62px;
    height: 62px;
  }
  .lightbox {
    padding: 20px 12px;
  }
  .lightbox__img {
    max-width: 92vw;
    max-height: 68vh;
  }
  .lightbox__close {
    width: 44px;
    height: 44px;
  }
  .lightbox__actions {
    bottom: 28px;
    gap: 10px;
  }
  .slogan {
    padding: 32px 12px;
  }
  .slogan__img {
    max-width: 55vw;
  }
  .back-to-top {
    right: 12px;
    bottom: 62px;  /* 2026-08-13 改：抬高到吸底栏(50px)之上 */
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .fastscroll {
    width: 8px;
  }
  .fastscroll__thumb {
    right: 2px;
    width: 4px;
  }

}

/* === Fast scrollbar（2026-08-13 改：胶囊手柄 + 5x 加速拖动——用户方案 A） === */
.fastscroll {
  position: fixed;
  top: 0;
  right: 0;
  width: 14px;
  height: calc(100vh - 50px);  /* 2026-08-13 改：减掉吸底栏高度，避免 thumb 被吸底遮挡 */
  z-index: 1001;         /* 2026-08-13：提到 logo-wrap(1000) 之上，否则顶部手柄被吸顶 Logo 挡住 */
  opacity: 1;            /* 常态可见（半透明胶囊，不再隐藏） */
  transition: opacity 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.fastscroll__thumb {
  position: absolute;
  right: 4px;
  width: 6px;
  height: 80px;          /* 固定长度胶囊，好抓 */
  border-radius: 999px;  /* 胶囊 */
  background: rgba(20, 20, 20, 0.28);  /* 常态半透明 */
  transition: background 0.15s var(--ease);
  will-change: transform;
}
.fastscroll.dragging .fastscroll__thumb,
.fastscroll__thumb:hover {
  background: rgba(20, 20, 20, 0.65);  /* 拖动/悬停加深 */
  width: 8px;
  right: 3px;
}


/* === 店猫一百（2026-07-28 00:21 移到左下角避让"回到顶部"；2026-08-14 改为可拖动、初始抬高避开吸底栏） === */
.shop-cat {
  position: fixed;
  left: 16px;
  top: auto;
  bottom: 120px;      /* 2026-08-14 改：初始抬高（原 16px 会被吸底栏 50px 挡住），上方留出呼吸空间 */
  width: 120px;
  z-index: 9998;
  cursor: grab;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  pointer-events: auto;
  transform-origin: 50% 100%;
  animation: catSway 3.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
  touch-action: none;   /* 2026-08-14 改：拖动手势交给 JS，不做页面滚动 */
}
.shop-cat.is-dragging {
  cursor: grabbing;
  animation: none;      /* 拖动时停止摇摆动画 */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  transform: scale(1.05);
  transition: transform 0.1s ease;
}

.shop-cat:hover {
  animation-play-state: paused;
}

.shop-cat.is-clicked {
  animation: catBounce 0.55s ease;
}

.shop-cat__img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.shop-cat__bubble {
  position: absolute;
  left: 100%;
  top: 18%;
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #2c2418;
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: scale(0.7) translateY(8px);
  transform-origin: 0% 50%;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.shop-cat__bubble.is-show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.shop-cat__bubble::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.96);
}

@keyframes catSway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-6px); }
}

@keyframes catBounce {
  0% { transform: scale(1, 1) rotate(0); }
  25% { transform: scale(0.92, 1.08) rotate(-6deg); }
  55% { transform: scale(1.08, 0.92) rotate(5deg); }
  80% { transform: scale(0.97, 1.03) rotate(-2deg); }
  100% { transform: scale(1, 1) rotate(0); }
}

@media (max-width: 640px) {
  .shop-cat {
    width: 88px;
    left: 12px;
    bottom: 12px;
  }
  .shop-cat__bubble {
    font-size: 14px;
    padding: 6px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-cat { animation: none; }
}
/* === /店猫一百 === */

/* === Site Nav（logo 下面"联系我们"入口，margin-top 避开 fixed banner） === */
.site-nav {
  text-align: left;  /* 2026-08-06 改：联系我们靠最左（原 center） */
  padding: 30px 24px 8px;  /* 2026-08-11 改：top 10→30 补回挪走的"联系我们"行高，让小字位置不变 */
  margin-top: 110px;
}

@media (max-width: 1024px) {
  .site-nav { margin-top: 90px; }
}

/* 2026-08-11 改：联系我们从 .site-nav 容器挪出，独立成 .site-nav-link，水平居中放在瀑布流正上方一点点 */
.site-nav-link {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;  /* 2026-08-13 改回：恢复原来位置（用户要求） */
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 5px 14px;
  border-radius: 999px;
  /* 2026-08-13 改：加浅浅底色（用户要求），hover 稍深 */
  background: rgba(92, 79, 66, 0.06);
  /* 2026-08-06 改：去掉胶囊边框，保留 hover 浅色反馈 */
  border: none;
  font-family: inherit;      /* 2026-08-14 改：<button> 默认字体与 <a> 不同，继承页面字体 */
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.site-nav-link:hover,
.site-nav-link:active {
  color: var(--text);
  background: rgba(92, 79, 66, 0.10);
}

/* ⭐ 按场景展示（2026-08-13：吸底栏抽屉——点击整个栏向上展开收纳场景标签，选完收回） ⭐ */
.scenebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 950;
  background: rgba(250, 248, 245, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border: none;          /* 2026-08-13 用户要求：去掉上边线 */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: height 0.28s var(--ease);
  pointer-events: none;  /* 容器不挡内容交互，按钮/标签自身恢复 */
  overflow: hidden;      /* 抽屉展开时内容裁剪在栏内 */
}
.scenebar.open {
  height: 190px;         /* 抽屉展开：收纳全部场景标签（11 个约 2-3 行） */
}
.scenebar__head {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  flex-shrink: 0;
  pointer-events: auto;
}
.scenebar__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;          /* 与「联系我们」一致 */
  letter-spacing: 0.2em;    /* 与「联系我们」一致 */
  color: var(--text-muted);
  background: rgba(92, 79, 66, 0.06);  /* 与「联系我们」一致 */
  border: none;
  border-radius: 999px;
  padding: 5px 14px;        /* 与「联系我们」一致 */
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}
.scenebar__trigger:hover,
.scenebar__trigger.open {
  color: var(--text);
  background: rgba(92, 79, 66, 0.10);  /* 与「联系我们」hover 一致 */
}
.scenebar__opts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 2px 16px 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.28s var(--ease);
  pointer-events: none;
}
.scenebar.open .scenebar__opts {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scenebar__opt {
  font-size: 10px;          /* 2026-08-13 改：与「按场景展示」按钮一致 */
  letter-spacing: 0.2em;    /* 与「按场景展示」按钮一致 */
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 999px;
  padding: 5px 14px;        /* 2026-08-13 改：与「按场景展示」按钮一致 */
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.scenebar__opt:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}
.scenebar__opt.on {
  color: #fff;
  background: var(--text);
}
/* ⭐ /按场景展示 ⭐ */

/* 2026-08-09 新增：Logo 下面客片更新说明小字（"客片每次打开都是随机排列的，更新至2026年6月份"） */
/* 2026-08-11 改：挪出 .site-nav 容器，独立成元素放在 .featured 之后、.gallery 之前 */
.site-nav__note {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;  /* 2026-08-11 改：水平居中 + 底部 12px 贴 .gallery */
  font-size: 5.5px;  /* 2026-08-11 改：再小一倍（老板要求） */
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0.7;
  text-align: center;  /* 2026-08-09 改：居中（老板要求） */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

@media (max-width: 640px) {
  .site-nav__note {
    font-size: 5px;  /* 2026-08-11 改：再小一倍（老板要求） */
    margin: 0 auto 12px;  /* 2026-08-11 改：水平居中 + 底部 12px 贴 .gallery */
    letter-spacing: 0.03em;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 28px 20px 6px;  /* 2026-08-11 改：top 8→28 补回挪走的"联系我们"行高 */
    margin-top: 70px;
  }
  .site-nav-link {
    font-size: 9px;
    padding: 4px 10px;
  }
}
/* === /Site Nav === */
/* === 客服咨询按钮（留资卡入口，iOS 18 风格） === */
.cs-btn {
  position: fixed;
  right: 16px;
  bottom: 160px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.15);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease;
  overflow: hidden;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cs-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,0.18);
}

.cs-btn:active {
  transform: scale(0.92);
}

.cs-btn img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

/* === 留资卡遮罩（iOS 18 深色毛玻璃） === */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === 留资卡（iOS 18 深色毛玻璃，白色文字） === */
.card {
  position: relative;
  width: 340px;
  max-width: 88vw;
  background: rgba(28, 28, 30, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  backdrop-filter: saturate(180%) blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 36px 24px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: cardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.card__close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.card__title {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding-top: 4px;
}

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

.card__input {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.card__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.card__input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.card__submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: 14px;
  background: #FFFFFF;
  color: #1C1C1E;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}

.card__submit:hover {
  opacity: 0.9;
}

.card__submit:active {
  transform: scale(0.97);
}

.card__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card.success .card__form {
  display: none;
}

.card.success .card__success {
  display: flex;
}

.card__success {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  animation: successIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.checkmark svg {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.8);
}

.card__success-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.card__footer {
  text-align: center;
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .cs-btn {
    right: 12px;
    bottom: 148px;
    width: 40px;
    height: 40px;
  }
  .cs-btn img {
    width: 24px;
    height: 24px;
  }
  .card {
    padding: 28px 20px 24px;
  }
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .cs-btn { background: rgba(255,255,255,0.75); }
  .card { background: rgba(28, 28, 30, 0.95); }
  .overlay { background: rgba(0, 0, 0, 0.6); }
}

/* 下线留资功能（代码保留，取消注释即可恢复） */
.cs-btn, .overlay {
  display: none !important;
}
/* === /留资卡 === */
/* ⭐ 精选轮播区域（v11dev：视频版） ⭐ */
.featured {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  height: 420px;
  max-width: 1100px;
}

@media (max-width: 640px) {
  .featured { height: 340px; }
}

/* 左右渐变遮罩：各占25%，向中间渐变为透明 */
.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(to right, #FAF8F5, transparent 25%, transparent 75%, #FAF8F5);
}

/* 2026-08-16 改回：9 图图片 fade 轮播（用户选择恢复旧版，替代视频版） */
.featured__images {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.featured__img-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: imgFade 27s infinite;
  overflow: hidden;
  background: #2a2520;
}

.featured__img-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.featured__img-slide:nth-child(1) { animation-delay: 0s; }
.featured__img-slide:nth-child(2) { animation-delay: 3s; }
.featured__img-slide:nth-child(3) { animation-delay: 6s; }
.featured__img-slide:nth-child(4) { animation-delay: 9s; }
.featured__img-slide:nth-child(5) { animation-delay: 12s; }
.featured__img-slide:nth-child(6) { animation-delay: 15s; }
.featured__img-slide:nth-child(7) { animation-delay: 18s; }
.featured__img-slide:nth-child(8) { animation-delay: 21s; }
.featured__img-slide:nth-child(9) { animation-delay: 24s; }

@keyframes imgFade {
  0%      { opacity: 0; }
  1.85%   { opacity: 1; }
  9.26%   { opacity: 1; }
  11.11%  { opacity: 0; }
  100%    { opacity: 0; }
}

/* 固定品牌Logo层（居中，不变化，不动） */
.featured__brand {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.featured__brand img {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 40%;
  object-fit: contain;
  opacity: 0.92;
}

@media (max-width: 640px) {
  .featured__brand img {
    max-width: 75%;
    max-height: 35%;
  }
}

/* ⭐ 标签横条（2026-08-22 新增：叠在轮播图上——中间展示 6 个标签，两侧滚动控制区，滚动后吸顶） ⭐ */
.tagbar {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;              /* 叠在轮播图底部 */
  z-index: 30;               /* 在轮播图遮罩(5)之上、品牌Logo(3)之上；低于吸顶logo-wrap(1000) */
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;      /* 容器不拦点击，子元素各自开 */
}

/* 中间展示窗口：固定宽度 = 7 个标签（缩小后 7 × ~52px + 6 × 6px gap ≈ 400px），溢出裁掉，横向移动靠 track transform */
.tagbar__window {
  pointer-events: auto;
  width: 400px;              /* 恰好 7 个标签位（2026-08-22 用户要求缩小后放 7 个） */
  max-width: calc(100vw - 40px);   /* 手机缩窄时仍保持 7 个 */
  height: 22px;              /* 缩小后高度（原 34px） */
  overflow: hidden;
  position: relative;
  touch-action: pan-y;       /* 横向拖动由 JS 处理，纵向滚动保留页面 */
}

.tagbar__track {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  width: max-content;
  will-change: transform;
  /* transform 由 JS 控制：按住窗口任意位置左右拖动 → translateX(负值) 让后续标签滚入窗口 */
}

/* 标签胶囊：毛玻璃白底更透明（2026-08-22 用户：缩小一半 + 透明度加高） */
.tagbar__chip {
  flex-shrink: 0;
  padding: 2px 7px;          /* 缩小一半（原 6px 14px） */
  border-radius: 999px;
  font-size: 10px;           /* 缩小（原 12px） */
  letter-spacing: 0.03em;
  color: #333;
  background: rgba(255, 255, 255, 0.42);   /* 更透明（原 0.72） */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: none;               /* 2026-08-23 用户：去掉描边 */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  line-height: 1.6;
}

.tagbar__chip:active { transform: scale(0.94); }

/* 选中态：金色填充（参考 PUTTER on） */
.tagbar__chip.on {
  background: #b08d57;
  color: #fff;
  border-color: #b08d57;
  font-weight: 600;
}

/* 吸顶态（滚动后固定贴吸顶栏下方——top 由 JS 动态设置 = 吸顶栏实际高度 + 4px，2026-08-23 修：
   之前写死 114px，手机吸顶栏 70px/平板 90px 时中间空出一大截） */
.tagbar.stuck {
  position: fixed;
  bottom: auto;
  left: 0; right: 0;
  z-index: 900;              /* 低于吸顶logo-wrap(1000)，吸顶展开抽屉时被盖住 */
}

@media (max-width: 640px) {
  .tagbar__window { width: 360px; }   /* 手机 7 个 */
  .tagbar { bottom: 8px; }
}
/* ⭐ /标签横条 ⭐ */
/* ⭐ /精选轮播区域 ⭐ */
/* ============================================
   v11-strict 严格单展开模式（2026-08-06 整合自开发版）
   - 单击图块 = 原地 T 锚展开（双列下推+浮层遮挡）
   - 双击图块 = 打开 Lightbox 全屏看大图
   - 严格单展开：点第二个图块时第一个自动缩回
   ============================================ */
.gallery__item.expanded { z-index: 10; }

/* FLIP 动画：只用 transform 做位置过渡，GPU 加速 */
.gallery__item.flip {
  transition: transform 0.55s var(--ease-smooth);
}

.gallery__item.expanded .gallery__block {
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.20);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.gallery__item:hover .gallery__block { transform: scale(1.015); }
.gallery__item.expanded:hover .gallery__block { transform: none; }

/* 展开后显示日期（缩略图状态下保持隐藏） */
.gallery__item.expanded .gallery__date {
  display: block;
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 12px;
  border-radius: 6px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 4;
}
/* ⭐ ICP 备案号（2026-08-25 新增：页面底部，小字号，链接工信部备案系统） ⭐ */
.icp-footer {
  margin-top: 56px;              /* 留出底部空间，避免被店猫/吸底栏遮挡 */
  padding: 22px 16px 130px;      /* 底部 130px：避开吸底栏(50px)+店猫，确保文字不被盖 */
  text-align: center;
  position: relative;
  z-index: 952;                  /* 高于吸底栏 scenebar(950)，低于店猫(9998)留交互 */
  background: var(--bg);
}
.icp-footer__text {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  opacity: 0.75;
  line-height: 1.7;
}
.icp-footer__link {
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.9;
}
.icp-footer__link:visited { color: var(--text-muted); }
.icp-footer__link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .icp-footer { margin-top: 40px; padding-bottom: 100px; }
  .icp-footer__text { font-size: 9px; }
}
