[class^="_op_"],
[class*="_op_"]{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 自定义变量 —— 网页配色 */
:root {
    --smcolor-gold: #d6b56a;
    --smcolor-green: #001b1b;
}
/* 自定义超宽分辨率下 container 限宽宽度
   (原为 1400px 以上 限宽1320px) */
@media (min-width: 1600px){
    .container,
    .container-xxl{
        max-width: 1500px;
    }
}
.clear {clear:both;}

/* =========================
   Chez Mamie - Top HERO
   ========================= */

.sm-hero {
    min-height: 100vh;
    background: var(--smcolor-green);  /* fallback */
}
.sm-icon-bt5 {color: var(--smcolor-gold);}

/* 兜底图片层 */
.sm-hero__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(0.9) contrast(1.05);
    z-index: 0;
}
/* 视频层 */
.sm-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: brightness(0.7) saturate(1.05) contrast(1.05);
    z-index: 1;
    pointer-events: none;
}
/* 渐变遮罩 */
.sm-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* Dark base + #001b1b mood + readable text */
    background:
    radial-gradient(80% 60% at 70% 20%,
        rgba(0, 27, 27, .15) 0%,
        rgba(0, 0, 0, .35) 60%,
        rgba(0, 0, 0, .50) 100%),
    linear-gradient(180deg,
        rgba(0, 0, 0, .15) 0%,
        rgba(0, 0, 0, .35) 55%,
        rgba(0, 0, 0, .50) 100%);
}

/* 菜单联动: 菜单显示时, 首屏内容渐隐, 避免文字透出造成凌乱 */
.sm-hero-content{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 10;
}

/* 菜单打开: 内容区淡出并轻微下沉一点点 (更自然) */
body.sm-menu-open .sm-hero-content{
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none; /* 防止菜单打开时误点到内容 */
}

/* 减少动态效果: 直接切换到最终态 */
@media (prefers-reduced-motion: reduce){
  .sm-hero-content{
    transition: none !important;
  }
}

.sm-topnav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;  /* must be > drawer(1050) and backdrop(1040) */
    background: transparent;
    transition:
        background-color .35s ease,
        backdrop-filter .35s ease,
        box-shadow .35s ease;
}
.sm-topnav.is-glass{
  background: rgba(10,10,10,0.55);           /* 深色液体 */
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.sm-topnav.is-glass::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: rgba(255,255,255,.08);
}
.sm-topnav.is-glass img{
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}

.sm-kicker {
    display: inline-flex;
    font-size: 1rem;
    align-items: center;
    padding: .35rem .7rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(10px);
}
.sm-dot {
    width: .45rem;
    height: .45rem;
    border-radius: 999px;
    background: var(--smcolor-gold); /* gold */
    box-shadow: 0 0 0 .25rem rgba(214, 181, 106, .15);
}
.sm-text-gold { color: var(--smcolor-gold); }

.sm-intro {font-size: 1.2rem;}
@media (max-width: 991.98px){
    .sm-kicker {font-size: .9rem;}
    .sm-intro {font-size: 1rem;}
}

.sm-glass {
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.sm-pill-group{
  flex-wrap: wrap;        /* ✅ 允许换行 */
  justify-content: center;/* 可选: 居中更好看 */
}
/* <1200px: 两列 (2 + 1) */
@media (max-width: 1199.98px){
  .sm-pill-group .sm-pill{
    flex: 0 1 calc(50% - .75rem); /* .75rem ≈ gap-3 的一半 (1rem/2) */
    justify-content: center;
  }
}
.sm-pill {
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.04);
    font-size: .875rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    transition: .18s ease;
}
.sm-pill .sm-pill-ico{
    width: 25px;
    height: 25px;
    display: inline-block;
    line-height: 0;
    flex: 0 0 auto;
}
.sm-pill:hover {
    border: 1px solid rgba(255,255,255,.28);
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.12);
}

/* =========================
   Chez Mamie - Hamburger menu
   ========================= */

/* Hamburger button */
.sm-burger{
  width: 44px;
  height: 44px;
  padding: 0;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;

  opacity: 1;
  transition: opacity .15s ease;
}

/* Bars */
.sm-burger__bar{
  height: 2px;
  width: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);

  /* Always center: no jump */
  transform-origin: center;

  /* Only animate transform/opacity */
  transition: transform .22s ease, opacity .18s ease;
  will-change: transform;

  /* Explicit baseline transform for stable interpolation */
  transform: translateX(0) translateY(0) rotate(0) scaleX(1);
}

/* Open -> X */
.sm-burger.is-open .sm-burger__bar:nth-child(1){
  transform: translateY(9px) rotate(45deg) scaleX(1);
}

.sm-burger.is-open .sm-burger__bar:nth-child(2){
  opacity: 0;
  transform: scaleX(.2);
}

.sm-burger.is-open .sm-burger__bar:nth-child(3){
  transform: translateY(-9px) rotate(-45deg) scaleX(1);
}

/* -------------------------
   Hover effects
   Only on devices that truly support hover (prevents sticky hover on touch)
   ------------------------- */
@media (hover: hover) and (pointer: fine){

  .sm-burger:hover{ opacity: .95; }

  /* Hover shrink ONLY when NOT open */
  .sm-burger:not(.is-open):hover .sm-burger__bar:nth-child(1){
    transform: translateX(6px) scaleX(.62);
  }

  .sm-burger:not(.is-open):hover .sm-burger__bar:nth-child(3){
    transform: translateX(-6px) scaleX(.62);
  }

  /* Open (X) hover: slightly shorter for refinement */
  .sm-burger.is-open:hover .sm-burger__bar:nth-child(1){
    transform: translateY(9px) rotate(45deg) scaleX(.82);
  }

  .sm-burger.is-open:hover .sm-burger__bar:nth-child(3){
    transform: translateY(-9px) rotate(-45deg) scaleX(.82);
  }
}

/* ===== Fullscreen Menu Overlay ===== */
.sm-menu {
  position: fixed;
  inset: 0;
  z-index: 1050; /* < top nav (1060) */
  opacity: 0;
  pointer-events: none;

  /* 背景: 与你主页体系一致 */
  background:
    radial-gradient(120% 80% at 20% 10%,
    rgba(27, 0, 0, 0.68) 0%,
        rgba(0,0,0,.92) 60%,
        rgba(0,0,0,.96) 100%);

  transition: opacity .26s ease;
}

/* open state */
.sm-menu.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* lock scroll when menu open */
body.sm-menu-lock{
  overflow: hidden;
}

/* Items base state */
.sm-menu__item{
  opacity: 0;
  transform: translateY(10px);
  letter-spacing: .05em;
  filter: blur(5px);
  transition:
    opacity .22s ease,
    transform .22s ease,
    letter-spacing .28s ease,
    filter .28s ease;
}

/* Items visible (staggered top->bottom) */
.sm-menu.is-open .sm-menu__item.is-in{
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i) * 70ms); /* 控制逐一渐显速度 */
  letter-spacing: 0;
  filter: blur(0);
}

/* Closing (staggered bottom->top) */
.sm-menu.is-closing .sm-menu__item.is-in{
  opacity: 0;
  transform: translateY(10px);
  letter-spacing: .05em;
  filter: blur(5px);
  /* 这里用 JS 动态设置每个条目的 delay (反向), 所以 CSS 不写固定 delay */
}

/* Optional: make list item hover a bit premium on desktop */
@media (hover:hover) and (pointer:fine){
  .sm-menu__list .list-group-item:hover{
    border-color: rgba(214,181,106,.35) !important;
  }
}

/* Reduced motion – accessibility */
@media (prefers-reduced-motion: reduce){
  /* Disable all transitions */
  .sm-menu,
  .sm-menu__item{
    transition: none !important;
  }
  /* Menu items: force final readable state */
  .sm-menu__item{
    opacity: 1 !important;
    transform: none !important;
    letter-spacing: 0 !important;
    filter: none !important;
  }
}

/* =========================
   Drawer 菜单项 Hover 高级动效
   ========================= */

/* 菜单链接基础: 为左侧新箭头留空间 */
.sm-menu-link{
  position: relative;
  overflow: hidden;
  padding-left: 1.25rem; /* 常态留一点空间 */
}

/* 左侧文字: 用 transform 来移动 (比 padding 更丝滑、更稳) */
.sm-menu-link .sm-menu-text{
  display: inline-block;
  color: rgba(255,255,255,.95);
  transform: translateX(0);
  transition: transform .22s ease, color .26s ease;;
  will-change: transform;
}

/* 右侧原箭头: 位移 + 渐隐 */
.sm-menu-link .bi-arrow-right{
  transition: transform .22s ease, opacity .22s ease;
  will-change: transform, opacity;
}

/* 左侧"新箭头": 伪元素 */
.sm-menu-link::before{
  content: "\f285"; /* 你改成的 f285 */
  font-family: "bootstrap-icons", system-ui, sans-serif;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-6px, -50%);
  opacity: 0;
  color: var(--smcolor-gold);
  transition: transform .22s ease, opacity .22s ease;
  will-change: transform, opacity;
}

/* 仅桌面端 hover 生效, 避免触摸端粘 hover */
@media (hover: hover) and (pointer: fine){
  /* 右侧箭头: 右移 + 渐隐 */
  .sm-menu-link:hover .bi-arrow-right{
    transform: translateX(8px);
    opacity: 0;
  }

  /* 左侧新箭头: 渐显 + 向右推进一点 */
  .sm-menu-link:hover::before{
    opacity: 1;
    transform: translate(6px, -50%);
  }

  /* 文字: 被"顶"向右平滑移动 */
  .sm-menu-link:hover .sm-menu-text{
    color: rgba(214,181,106,.85);
    transform: translateX(12px);
  }
}

/* Drawer 页尾信息部分 */
.sm-drawer-line{
  gap: .5rem;               /* 统一间距 */
}
.sm-drawer-text{
  display: inline-block;
  line-height: 1.3;         /* 让多行更舒服 */
  min-width: 0;             /* ✅ 允许 flex 下换行 */
}
/* 如果你希望地址那行能换行但第二行依然对齐在文字起点 */
.sm-drawer-line{
  align-items: flex-start;  /* 多行时更稳: 图标与第一行对齐 */
}
.sm-drawer-ico{
  margin-top: 1px;          /* 微调: 视觉居中, 可 0~2px */
}
.lottie-ico.sm-drawer-ico{
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  display: inline-block !important;
  line-height: 0 !important;
  flex: 0 0 25px !important;
  overflow: hidden !important;
}
.lottie-ico.sm-drawer-ico svg{
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  display: block !important;
}

/* =========================
   Global - CTA (沿用菜单项 Hover 动效: 左箭头推字 + 背景扫层)
   目标:
   - 箭头在文字左侧出现 (挨着字但不紧贴)
   - 箭头像"推着文字走"
   - primary / secondary 保留各自的"扫层"逻辑
   ========================= */

/* CTA 通用基础 */
.sm-cta {
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding-left: 1.25rem;
  padding-right: 1.25rem;

  transition:
    opacity .22s ease,
    transform .22s ease,
    letter-spacing .28s ease,
    filter .28s ease,
    color .26s ease,
    border-color .26s ease,
    background-color .26s ease;
}

/* CTA 文案: 用 transform 做"被顶开" */
.sm-cta .sm-cta-text{
  position: relative;
  z-index: 2;

  display: inline-block;
  transform: translateX(0);
  transition: transform .22s ease, color .26s ease;
  will-change: transform, color;
}

/* CTA 左侧"新箭头": 锚定在文字左侧 (不再靠按钮左边) */
.sm-cta .sm-cta-text::before{
  content: "\f285"; /* bi-arrow-right (你喜欢的那版) */
  font-family: "bootstrap-icons", system-ui, sans-serif;
  position: absolute;
  right: 100%;              /* 关键: 以文字为锚点, 永远在文字左侧 */
  top: 50%;

  margin-right: .28rem;     /* 关键: 与文字保持舒适间距 (不紧贴) */
  transform: translate(-10px, -50%);
  opacity: 0;

  color: currentColor;      /* 默认跟随文字颜色 */
  transition: transform .22s ease, opacity .22s ease;
  will-change: transform, opacity;
}

/* 背景扫层 (用于左->右的填充/退去) */
.sm-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;

  transform: translateX(-105%);
  transition: transform .42s ease;
  will-change: transform;
}

/* 仅桌面端 hover 生效, 避免触摸端粘 hover */
@media (hover:hover) and (pointer:fine){

  /* hover: 左箭头从左侧滑入出现 (贴着文字出现) */
  .sm-cta:hover .sm-cta-text::before{
    opacity: 1;
    transform: translate(0, -50%);
  }

  /* hover: 文字被箭头"推着"右移 */
  .sm-cta:hover .sm-cta-text{
    transform: translateX(12px);
  }

  /* hover: 背景扫层从左到右 */
  .sm-cta:hover::before{
    transform: translateX(0);
  }
}

/* =========================
   primary: 默认实心金 + 黑字
   hover: 空心金 + 金字
   同时: 用遮罩扫层实现"从左到右退去/变透明"
   ========================= */

.sm-cta-primary{
  background: var(--smcolor-gold);
  border: 1px solid rgba(214,181,106,.75);
  color: rgba(0,0,0,.92);
}

/* Réserver 的扫层: 用接近页面底色的遮罩覆盖金底 (视觉=从左到右变透明) */
.sm-cta-primary::before{
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.28) 0%,
    rgba(27, 0, 0, 0.75) 72%,
    rgba(0,27,27,0) 100%
  );
}

@media (hover:hover) and (pointer:fine){
  .sm-cta-primary:hover{
    background: transparent;
    border-color: rgba(214,181,106,.75);
    color: rgba(214,181,106,.95);
  }
}

/* =========================
   secondary: 默认透明 + 白边线 + 白字
   hover: 实心白 + 黑字
   同时: 白色扫层从左到右填充
   ========================= */

.sm-cta-secondary{
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  color: rgba(255,255,255,.92);
}

/* secondary 的扫层: 从左到右填充白色 (尾部透明过渡更柔) */
.sm-cta-secondary::before{
  background: linear-gradient(
    90deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 80%,
    rgba(255,255,255,0) 100%
  );
}

@media (hover:hover) and (pointer:fine){
  .sm-cta-secondary:hover{
    background: rgba(255,255,255,1);
    border-color: rgba(255,255,255,0);
    color: rgba(0,0,0,.92);
  }
}

/* =========================
   可访问性: 减少动态
   ========================= */
@media (prefers-reduced-motion: reduce){
  .sm-cta,
  .sm-cta::before,
  .sm-cta .sm-cta-text,
  .sm-cta .sm-cta-text::before{
    transition: none !important;
  }

  .sm-cta::before{
    transform: none !important;
  }

  .sm-cta .sm-cta-text::before{
    opacity: 1 !important;
    transform: translate(0, -50%) !important;
  }

  .sm-cta .sm-cta-text{
    transform: none !important;
  }
}

/* Scroll hint: layout (HERO 向下滚动提示) */
.sm-scroll-hint{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.55);
}
.sm-scroll-hint:hover{ color: rgba(255,255,255,.75); }

/* ✅ 强制锁死 scroll lottie 的容器尺寸 (压过任何全局 .lottie-ico 规则) */
.lottie-ico.sm-scroll-ico{
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  display: inline-block !important;
  line-height: 0 !important;
  flex: 0 0 50px !important;
  overflow: hidden !important;
}

/* ✅ 强制锁死内部 svg (lottie 常会写 inline 尺寸) */
.lottie-ico.sm-scroll-ico svg{
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  display: block !important;
}

/* ====== 固定屏幕全局样式 ====== */
.sm-stage-kicker {
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: .75rem;
}

.sm-stage-title {
    font-weight: 300;
    line-height: 1.05;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    margin: 0 0 .85rem 0;
}
/* 移动端排版缩一点, 避免占太多高度 */
@media (max-width: 991.98px){
    .sm-stage-title { font-size: clamp(1.85rem, 7.2vw, 2.35rem); }
}
@media (max-width: 991.98px) and (max-height: 720px){
    .sm-stage-title { font-size: clamp(1.55rem, 6.6vw, 2.05rem); }
}


/* =========================================================
   Signature — FULL OVERRIDE v6.2 (Desktop + Mobile keep pin + Overlay UI)
   目标:
   1) pin 总高度公式正确: total = pinPx + stickyHeight (消灭黑洞)
   2) Desktop: 左右都 sticky, 同 top 同 height, 进出同步
   3) Mobile(<992): 依然 pin; 文案作为"屏幕 UI"挂在 sticky 上顶头/压底, 不受 frame 高度影响
   ========================================================= */

.sm-signature{
  position: relative;
  background: #020202;
  color: #fff;
  overflow: visible !important; /* sticky 祖先链不要截断 */
  /*padding: clamp(2.5rem, 5vw, 4rem) 0;*/
}

.sm-signature .sm-sig-stage {
  position: relative;
  overflow: visible !important;
}

/* ===== 核心变量: JS 会把 --sm-pinpx 写成 px ===== */
#signature{
  --sm-top: clamp(64px, 8vh, 96px);
  --sm-pinpx: 220vh;                 /* JS override -> px */
  --sm-sticky-h: calc(100vh - var(--sm-top));
  --sm-total-h:  calc(var(--sm-pinpx) + var(--sm-sticky-h));
}

/* ===== 左列滚动容器: 提供"路程" ===== */
.sm-seq{
  position: relative;
  width: 100%;
  min-height: var(--sm-total-h);
}

/* ===== 左侧 sticky 舞台 (也是移动端 overlay 的定位参照) ===== */
.sm-seq__sticky{
  position: sticky;
  top: var(--sm-top);
  height: var(--sm-sticky-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* 允许 overlay 不被裁切 */
}

/* ===== 方形画面: 宽高双约束, 矮屏不顶爆 ===== */
.sm-seq__frame{
  position: relative;
  width: min(92vw, 680px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #020202;
  max-height: calc(var(--sm-sticky-h) - 12px);
}

/* canvas + shield 填满容器 */
.sm-seq__canvas,
.sm-seq__shield{
  position: absolute;
  inset: 0;
}
.sm-seq__canvas{
  display: block;
  width: 100%;
  height: 100%;
}
.sm-seq__shield{
  background: transparent;
  pointer-events: auto;
  z-index: 2;
}

/* 你已决定: 不使用 poster */
.sm-seq__poster{ display:none; }

/* ========= Desktop (>=992): 右侧列同样提供总高度 + sticky 占满视口高度 ========= */
@media (min-width: 992px){
  #signature .col-lg-5{
    min-height: var(--sm-total-h);
  }

  #signature .sm-sigcopy{
    position: sticky;
    top: var(--sm-top);
    height: var(--sm-sticky-h);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: flex-start;
  }
}

/* ========= 右侧文案: 基础样式 (桌面/移动端 overlay 复用这些 class) ========= */
/*.sm-sigcopy__top{ margin-bottom: clamp(1.25rem, 2vw, 1.75rem); }*/

.sm-sig__title{ margin: 0 0 .85rem 0; }

.sm-sig__lead{
  color: rgba(255,255,255,.62);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40ch;
  margin: 0;
}

.sm-sigcopy__bottom{
  margin-top: clamp(1.25rem, 2.6vw, 2rem);
  padding-top: clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid rgba(255,255,255,.10);
}
.sm-sigcopy__bottom,
.sm-sig-overlay__bottom{
  transition: opacity .22s ease, transform .22s ease;
  will-change: opacity, transform;
}
.sm-sigcopy__bottom.is-switching,
.sm-sig-overlay__bottom.is-switching{
  opacity: 0;
  transform: translateY(6px);
}

.sm-sigcopy__label{
  color: rgba(255,255,255,.50);
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .65rem;
}

.sm-sigcopy__h-title{
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 500;
  margin: 0 0 .45rem 0;
}

.sm-sigcopy__h-desc{
  color: rgba(255,255,255,.86);
  line-height: 1.7;
  margin: 0;
  max-width: 48ch;
}

/* dots */
.sm-sigcopy__dots{
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}
.sm-sigcopy__dots span{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}
.sm-sigcopy__dots span.is-on{
  background: rgba(214,181,106,.95);
  box-shadow: 0 0 0 4px rgba(214,181,106,.12);
}

.forhdsd {display: inline-flex;}
.formobile {display: none;}

/* ========= Mobile / Narrow (<992): KEEP pin + Overlay UI (top/bottom anchored to sticky) ========= */
@media (max-width: 991.98px){

  .sm-signature{
    padding: 2.25rem 0 2.75rem;
  }

  /* 移动端依然提供路程 + sticky 视口 */
  .sm-seq{
    min-height: var(--sm-total-h);
  }
  .sm-seq__sticky{
    top: var(--sm-top);
    height: var(--sm-sticky-h);
  }

  /* 画面容器更适合窄屏 */
  .sm-seq__frame{
    width: min(92vw, 560px);
    border-radius: 22px;
    max-height: calc(var(--sm-sticky-h) - 12px);
  }

  /* 隐藏右侧列 (移动端用 overlay) */
  #signature .col-lg-5{
    display: none;
  }

  /* ===== overlay: 作为"屏幕 UI", 不跟随 frame 高度挤压 ===== */
  .sm-seq__sticky .sm-sig-overlay{
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 顶头 + 压底 */
  }

  .sm-seq__sticky .sm-sig-overlay__top,
  .sm-seq__sticky .sm-sig-overlay__bottom{
    text-shadow: 0 10px 30px rgba(0,0,0,.55);
  }
  /* ✅ 但顶部内容允许交互 (按钮能点) */
  .sm-seq__sticky .sm-sig-overlay__top{
    pointer-events: auto;
  }

  /* ✅ 双保险: 确保 CTA 链接一定可点击 */
  .sm-seq__sticky .sm-sig-overlay__top a,
  .sm-seq__sticky .sm-sig-overlay__top button{
    pointer-events: auto;
  }

  /* overlay 的 bottom 不要"分割线/外边距", 更像你 PS */
  .sm-seq__sticky .sm-sigcopy__bottom{
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  /* ===== Mobile: L'ESSENCE 区块右靠, 增强画面稳定性 ===== */
  .sm-seq__sticky .sm-sig-overlay__bottom{
    align-self: flex-end;     /* 整块靠右 */
    text-align: right;        /* 文本右对齐 */
    max-width: 420px;         /* 控制行长, 避免太散 */
    padding-bottom: 72px;     /* 轻微下压, 呼吸感更好 */
  }

  /* dots 跟着右靠 */
  .sm-seq__sticky .sm-sig-overlay__bottom .sm-sigcopy__dots{
    justify-content: flex-end;
  }

  .sm-seq__sticky .sm-sig__lead{
    font-size: 1rem;
    line-height: 1.55;
    max-width: 42ch;
  }
  .sm-seq__sticky .sm-sigcopy__h-title{
    font-size: 1.55rem;
  }
  .sm-seq__sticky .sm-sigcopy__h-desc{
    font-size: 1rem;
    line-height: 1.6;
  }
  .sm-seq__sticky .sm-sigcopy__dots{
    margin-top: .75rem;
  }

  .forhdsd {display: none;}
  .formobile {display: inline-flex;}

}

/* ========= Extra: very short screens (optional safety) ========= */
@media (max-width: 991.98px) and (max-height: 720px){
  .sm-seq__sticky .sm-sig__lead{
    font-size: .95rem;
  }
  .sm-seq__sticky .sm-sigcopy__h-title{
    font-size: 1.35rem;
  }
  .sm-seq__sticky .sm-sigcopy__h-desc{
    font-size: .95rem;
  }
}


/* =========================================================
   Community (第三屏) — FULL OVERRIDE v3 (NO ScrollTrigger pin)
   结构:
   #community
     .sm-community-track[data-pin]
       .sm-community-sticky (100vh)
         .container-xxl
           .sm-community-grid (2col/1col)
             .sm-community-copy
             .sm-community-phonesStage (relative stage)
               .sm-phone--ig / .sm-phone--tt (absolute, transform by JS)
   ========================================================= */

#community.sm-community{
  position: relative;
  background: #020202;
  color: #fff;
  overflow: visible;
}
#bganime {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #833ab4;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #fcb045, #fd1d1d, #833ab4);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #fcb045, #fd1d1d, #833ab4);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    z-index: 0;          /* ✅ 明确最底 */
    pointer-events: none;/* ✅ 不挡点击 */
    opacity: .28;
}
canvas {
    position: absolute;
    width: 100%!important;
    height: 100%!important;
    top: 0;
    left: 0;
    z-index: 0;
}

/* track: 只提供路程 (JS 会写 min-height) */
#community .sm-community-track{
  position: relative;
  overflow: visible;
}

/* ✅ 只裁第三屏横向溢出: 防横向滚动条 (局部, 不动 body/html) */
#community .sm-community-track,
#community .sm-community-sticky{
  overflow-x: clip;
}
@supports not (overflow: clip){
  #community .sm-community-track,
  #community .sm-community-sticky{
    overflow-x: hidden;
  }
}

/* sticky: 第三屏固定一屏 (不吃 --sm-top, 避免高度变化带来的错位) */
#community .sm-community-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;

  display: flex;
  align-items: center;

  z-index: 5;
  isolation: isolate;
}
#community .sm-community-sticky::before{
  content:"";
  position: absolute;
  inset: 0;
  z-index: 1;          /* ✅ 背景(0) < 遮罩(1) < 内容(2+) */
  pointer-events: none;

  background:
    linear-gradient(to bottom,
      rgba(2,2,2,1)   0px,
      rgba(2,2,2,.6)  80px,
      rgba(2,2,2,0)   200px
    ),
    linear-gradient(to top,
      rgba(2,2,2,1)   0px,
      rgba(2,2,2,.6)  90px,
      rgba(2,2,2,0)   220px
    );
  opacity: .9;
}
/* 4) 内容层抬高: 注意 z-index 需要 position 才生效 */
#community .sm-community-sticky > .container-xxl{
  position: relative;
  z-index: 2;
}

/* 主舞台 grid: 宽屏两列, 窄屏一列 */
#community .sm-community-grid{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.3fr);
  gap: clamp(18px, 3vw, 56px);
  align-items: center;
}

/* 左侧文案: 整列靠右 (你要求"靠右", 但文本仍左排更高级) */
#community .sm-community-copy{
  justify-self: end;
  text-align: left;
  max-width: 40ch;
}

#community .sm-community__title{ margin: 0 0 1rem 0; }
#community .sm-community__desc{
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  margin: 0;
}

/* 右侧手机舞台: 明确坐标系 & 高度 (高度主导手机大小) */
#community .sm-community-phonesStage{
  position: relative;
  justify-self: end;

  /* ✅ 宽度可以随宽屏变化, 但手机尺寸不靠它 (手机用 vh 控制) */
  width: min(560px, 46vw);

  /* ✅ 舞台高度明确, 否则 absolute 参考系会"掉坑" */
  height: min(78vh, 740px);

  /* 给 JS 一个更舒服的舞台 */
  margin-top: clamp(0px, 2vh, 14px);
}

/* ✅ 关键: 手机绝对定位, 但不写 left/top 50% & 不写 transform
   transform 完全交给 JS (否则必打架) */
#community .sm-phone{
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
  pointer-events: auto;
}

/* 手机外框: 只跟高度走 (不跟宽度) */
#community .sm-phone__device{
  width: clamp(240px, 42vh, 380px);
  aspect-ratio: 9 / 19.5;

  border-radius: 28px;
  background: #2f3332;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(2,2,2,.55);

  position: relative;
  overflow: hidden;
}

/* 居中圆孔 */
#community .sm-phone__notch{
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);

  width: 10px;
  height: 10px;
  border-radius: 50%;

  background: #202020;
  z-index: 10;
  pointer-events: none;
}

/* 矮窗口: 孔略小、略靠上 (更真实) */
@media (max-height: 720px){
  #community .sm-phone__notch{
    top: 10px;
    width: 8px;
    height: 8px;
  }
}

#community .sm-phone__screen{
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  overflow: hidden;
  background: #020202;
}

#community .sm-phone__scroll{
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translate3d(0,0,0);
}
#community .sm-phone__scroll img{
  width: 100%;
  height: auto;
  display: block;
}

/* ✅ 虚拟按钮: 浮在 screen 内部底部 */
#community .sm-phone__cta--in{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;

  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(0,0,0,.65);

  z-index: 5;               /* ✅ 压在滚动内容之上 */
    transition: .15s ease;
}
#community .sm-phone__cta--in:hover {
    color: #000;
    background: rgba(214, 181, 106, .86);
    border: 1px solid rgba(214, 181, 106,.20);
}
/* ✅ 让按钮更像 App UI: 按压反馈 (可选) */
#community .sm-phone__cta--in:active{
  transform: translateY(1px);
}

/* 层级: 保证前面那台按钮能点 */
#community .sm-phone--ig{ z-index: 3; }
#community .sm-phone--tt{ z-index: 2; }

/* ============ 窄屏: 上文下机, 手机居中 ============ */
@media (max-width: 991.98px){
  #community .sm-community-sticky{
    align-items: flex-start;
  }

  #community .sm-community-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #community .sm-community-copy{
    justify-self: start;
    max-width: 52ch;
      padding-top: 90px;
  }

  #community .sm-community-phonesStage{
    justify-self: center;
    width: min(540px, 92vw);
    height: min(82vh, 720px);
    margin-top: 10px;
  }

  #community .sm-phone__device{
    width: clamp(230px, 42vh, 350px);
  }
}

/* ============ 很矮窗口: 再缩, 防"巨人" ============ */
@media (max-height: 960px){
  #community .sm-community-phonesStage{
    height: min(72vh, 600px);
  }
  #community .sm-phone__device{
    width: clamp(220px, 36vh, 320px);
  }
}

/* =========================
   Footer / Chez Mamie
========================= */
.sm-footer{
  background: #1b0000; /* 你之前常用的深青绿系 (可按你主站色微调) */
  color: rgba(255,255,255,.82);
}

/* 情绪过渡层 */
.sm-footer__veil{
  position: relative;
  border-top: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(1200px 500px at 15% 20%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(900px 400px at 85% 30%, rgba(255,138,0,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.35));
}

.sm-footer__logo{
  letter-spacing: .12em;
  font-weight: 600;
  font-size: 1.15rem;
  color: rgba(255,255,255,.92);
}
.sm-footer__tagline{
  color: rgba(255,255,255,.65);
  max-width: 44ch;
}

/* 核心层 */
.sm-footer__core{
  border-top: 1px solid rgba(255,255,255,.08);
}

.sm-footer__title{
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
}

.sm-footer__text{
  color: rgba(255,255,255,.62);
  line-height: 1.6;
  max-width: 48ch;
}

.sm-footer__kv .sm-footer__k{
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.sm-footer__kv .sm-footer__v{
  margin-top: .35rem;
  color: rgba(255,255,255,.80);
  line-height: 1.55;
}

/* 营业时间 */
.sm-hours{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(0,0,0,.16);
}
.sm-hours__row{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}
.sm-hours__day{
  font-weight: 600;
  color: rgba(255,255,255,.86);
  white-space: nowrap;
}
.sm-hours__time{
  text-align: right;
  color: rgba(255,255,255,.70);
  line-height: 1.5;
}

.sm-footer__hint{
  font-size: .9rem;
  color: rgba(255,255,255,.50);
}

/* 链接 */
.sm-link{
  color: rgba(255,255,255,.86);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.sm-link:hover{
  color: rgba(255,255,255,.98);
  border-bottom-color: rgba(255,138,0,.65);
}

/* 按钮 (轻定制, 保持统一) */
.sm-btn{
  border-radius: 999px;
  padding: .72rem 1.1rem;
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.sm-btn__arrow{ opacity: .9; }

.sm-btn--primary{
  background: rgba(255,138,0,.92);
  border: 1px solid rgba(255,138,0,.70);
  color: #0b0f0f;
}
.sm-btn--primary:hover{
  transform: translateY(-1px);
  background: rgba(255,138,0,1);
  border-color: rgba(255,138,0,1);
  color: #0b0f0f;
}

.sm-btn--ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.86);
}
.sm-btn--ghost:hover{
  transform: translateY(-1px);
  border-color: rgba(255,138,0,.55);
  color: rgba(255,255,255,.95);
}

/* 社交按钮 */
.sm-social{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.12);
  color: rgba(255,255,255,.86);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.sm-social:hover{
  transform: translateY(-1px);
  border-color: rgba(255,138,0,.55);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.98);
}

/* 法务层 */
.sm-footer__legal{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}
.sm-footer__copy{
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}
.sm-legal{
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .9rem;
}
.sm-legal:hover{ color: rgba(255,255,255,.80); }

/* spacing helpers */
@media (min-width: 992px){
  .py-lg-6{ padding-top: 4rem !important; padding-bottom: 4rem !important; }
}

/* === FIX: 992~1399 横向滚动条 (footer 内部溢出)=== */

/* 1) 兜底: footer 内任何微小溢出都不要把整页顶出横向滚动条 */
.sm-footer{
  overflow-x: clip; /* 现代浏览器更优雅 */
}
@supports not (overflow: clip){
  .sm-footer{ overflow-x: hidden; }
}

/* 2) 核心: 修复 horaires 这一行 flex 默认 min-width:auto 导致的撑爆 */
.sm-hours__row{
  min-width: 0; /* 允许内容被挤压 */
}

.sm-hours__day{
  flex: 0 0 auto; /* 固定自己, 不参与挤压 */
  white-space: nowrap;
}

.sm-hours__time{
  flex: 1 1 auto; /* 可以缩 */
  min-width: 0;   /* 关键: 允许缩到比内容更小 */
}

/* 3) 在 992~1399 (lg~xl)再稳一点: 如果列太窄就让 time 换行到下一行 */
@media (min-width: 992px) and (max-width: 1399.98px){
  .sm-hours__row{
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .sm-hours__time{
    width: 100%;
    text-align: left; /* 换行后更自然 */
  }
}


/*------------------------------------------主页补充--------------------------------------------*/
:root{
    --sm-bg: #200000;
    --sm-text: rgba(255,255,255,.92);
}
.sm-page-bg{
  background:
    radial-gradient(1200px 700px at 30% 10%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(900px 600px at 70% 15%, rgba(255,138,0,.09), transparent 60%),
    var(--sm-bg);
  color: var(--sm-text);
}

/* =========================
   Google 好评
========================= */
.info-box {
    position: relative;
    width: 100%;
    text-align: center;
}
#info-google {
    background: #020202;
    padding: 1em 0 3em 0;
}
.digital-wall {
    position: relative;
    width: 95%;
    margin: 3em auto;
    padding: 2em 1%;
    border: 1px solid var(--smcolor-gold);
    border-radius: 10px;
}
.digital-title {
    position: absolute;
    top: -.9em;
    left: 1.8em;
    padding: 0 .2em;
    width: fit-content;
    color: var(--smcolor-gold);
    font-weight: 600;
    font-size: 3em;
    background: #020202;
}
.digital-box {
    float: left;
    width: 25%;
}
.digital-box-sp {
    float: left;
    padding: 1em;
    width: 50%;
}
.digital-scale {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    height: 0;
}
.digital-scale-sp {
    position: relative;
    width: 100%;
    padding-bottom: 50%;
    height: 0;
}
.digital {
    position: absolute;
    width: 96%;
    height: 96%;
    left: 2%;
    top: 2%;
    background-color: #020202;
    background-size: auto 100%;
    background-position: 50% 50%;
    transition: .4s;
}
.digital-sp {
    position: absolute;
    width: 80%;
    height: 80%;
    left: 10%;
    top: 15%;
    border-radius: 1em;
    z-index: 1;
}
.digital:hover {
    background-size: auto 110%;
    filter: brightness(80%);
}
.perso {
    position: absolute;
    top: .3em;
    left: 1em;
    z-index: 2;
}
.perso img {
    display: block;
    float: left;
    width: 3em;
    height: 3em;
}
.perso p {
    float: left;
    padding-top: .3em;
    padding-left: .8em;
    color: whitesmoke;
    font-size: 1.2em;
    font-weight: 600;
    text-align: left;
}
.perso p i {
    color: var(--smcolor-gold);
    font-size: .65em;
}
.perso-speak {
    margin: 0;
    padding: 2em 1em 1em;
    text-align: left;
    font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.3;
}
.digital-follow, .digital-follow-bg {
    position: absolute;
    padding: .6em 2em;
    color: #020202;
    font-size: 1em;
    text-decoration: none!important;
}
.digital-follow-bg {
    right: 2.6em;
    bottom: -2.8em;
    background: #020202;
    border: .5em solid #020202;
    border-radius: .3em;
    z-index: 1;
}
.digital-follow {
    right: 3em;
    bottom: -2em;
    background: var(--smcolor-gold);
    border-radius: .3em;
    transition: .2s;
    z-index: 2;
}
.digital-follow:hover {
    background: #ffd66c;
    transition: .3s;
    text-decoration: none;
}

@media (max-width: 768px) {
    .digital-title {left: 1.5em;}
    .digital-box {width: 50%;}
    .digital-box-sp {width: 100%;}
}
@media (max-width: 580px) {
    .digital-box-sp {padding: 0;}
    .digital-sp {left: 15%;}
    .perso {
        top: 0;
        left: .5em;
    }
}


/* =========================================================
   Chez Mamie — Menu (merged into Home)
   - 保留原 menu.css 结构
   - 关键融合点：
     1) 全局 :root / html,body 样式改为 #menu 区块内作用域，避免污染首页
     2) 原 sm-menu-header 样式保留但 scoped（首页已移除该 header）
     3) Tabs sticky 仍用 --sm-header-h，但“接缝处理对象”改为 .sm-topnav
   ========================================================= */
:root {
  --sm-panel: rgba(255,255,255,.06);
  --sm-panel-2: rgba(255,255,255,.04);
  --sm-border: rgba(255,255,255,.12);
  --sm-muted: rgba(255,255,255,.68);
  --sm-dim: rgba(255,255,255,.52);

  /* Chez Mamie 常用深青系（你需要的话可改成首页同款变量） */
  --sm-accent: #d6b56a; /* 若你首页不是橙色，改成你的主色 */
  --sm-accent-2: rgba(255,138,0,.18);

  --sm-radius: 22px;
  --sm-shadow: 0 24px 90px rgba(0,0,0,.55);
}

/* base styling for menu section */
#menu {
    color: var(--sm-text);
    background: radial-gradient(1200px 700px at 30% 10%, rgba(255,255,255,.06), transparent 55%),
              radial-gradient(900px 600px at 70% 15%, rgba(255,138,0,.09), transparent 60%),
              var(--sm-bg);
}
#menu::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;  /* 背景(0) < 遮罩(1) < 文字(2) */
  pointer-events: none;

  background:
    /*linear-gradient(to bottom,*/
    /*  rgba(2,2,2,1)   0px,*/
    /*  rgba(2,2,2,.6)  90px,*/
    /*  rgba(2,2,2,0)   180px*/
    /*),*/
    linear-gradient(to top,
      rgba(2,2,2,1)   0px,
      rgba(2,2,2,.6)  90px,
      rgba(2,2,2,0)   235px
    );

  opacity: .85;
}
.sm-menu-section-box {
    position: relative;
    z-index: 2;
}

.sm-btn-ghost{
  background: rgba(255,255,255,.08);
  color: var(--sm-text);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
}

.sm-menu-hero__kicker{
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--sm-dim);
}

.sm-menu-hero__title{
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sm-menu-hero__subtitle{
  color: color-mix(in srgb, var(--sm-accent) 85%, white 15%);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .92rem;
}

.sm-menu-hero__desc{
  max-width: 860px;
  color: var(--sm-muted);
  line-height: 1.6;
}

/* =========================================================
   Tabs (一级分类滑条) — scroll + arrows + drag
   ========================================================= */
.sm-tabs{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sm-tabs__arrow{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--sm-text);

  /* ✅ 改成 flex 居中（比 grid 更直觉也更稳） */
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  /* 🔒 固定 transform 形态，避免 hover 抖动 */
  transform: translate3d(0,0,0) scale(1);
  transform-origin: center;

  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;

  will-change: transform;
  backface-visibility: hidden;
}

.sm-tabs__arrow:hover{
  background: rgba(0,0,0,.34);
  transform: translate3d(0,0,0) scale(1.03);
}

.sm-tabs__arrow:active{
  transform: translate3d(0,0,0) scale(.98);
}

.sm-tabs__arrow.is-disabled{
  opacity: .35;
  pointer-events: none;
}

/* Icon inside */
.sm-tabs__arrow i{
  font-size: 20px;          /* 你想大一点就 22px */
  line-height: 1;
  pointer-events: none;     /* 点击一定落在 button 上 */
  transform: translateZ(0); /* 小保险：GPU 合成稳定 */
}

.sm-tabs__rail{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;

  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px;
  cursor: grab;

  /* 隐藏滚动条（不出现干扰项） */
  scrollbar-width: none;
}
.sm-tabs__rail::-webkit-scrollbar{ display:none; }
.sm-tabs__rail.is-dragging{ cursor: grabbing; }

.sm-tab{
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--sm-text);
  padding: 10px 16px;
  /*font-weight: 700;*/
  letter-spacing: .02em;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  user-select: none;
  white-space: nowrap;
}
.sm-tab:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}
.sm-tab.is-active{
  border-color: color-mix(in srgb, var(--sm-accent) 55%, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--sm-accent-2) 85%, rgba(255,255,255,.06));
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

/* =========================================================
   Left Gallery — Crossfade (保险成熟版)
   ========================================================= */
.sm-menu-gallery__frame{
  position: relative;
  width: 100%;
  border-radius: var(--sm-radius);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  aspect-ratio: 4 / 5;
  box-shadow: var(--sm-shadow);
  border: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 991.98px) {
  .sm-menu-gallery__frame{ aspect-ratio: 1 / 1; }
}

.sm-menu-gallery__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transform: scale(1.01);
  transition: opacity 420ms ease;
  will-change: opacity;
}

.sm-menu-gallery__img.is-on{ opacity: 1; }

.sm-menu-gallery__nav{
  position: absolute;
  top: 50%;

  /* 🔒 固定 transform 形态（关键） */
  transform: translate3d(0, -50%, 0) scale(1);
  transform-origin: center;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 5;

  transition:
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;

  will-change: transform;
  backface-visibility: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sm-menu-gallery__nav.is-prev{ left: 12px; }
.sm-menu-gallery__nav.is-next{ right: 12px; }

.sm-menu-gallery__nav:hover{
  background: rgba(0,0,0,.34);
  transform: translate3d(0, -50%, 0) scale(1.03);
}

.sm-menu-gallery__nav:active{
  transform: translate3d(0, -50%, 0) scale(.98);
}

.sm-menu-gallery__nav.is-disabled{
  opacity: .35;
  pointer-events: none;
}

/* Icon */
.sm-menu-gallery__nav i{
  font-size: 22px;
  line-height: 1;
  color: rgba(255,255,255,.92);
  pointer-events: none;

  /* 🔧 小保险：icon 本身也走 GPU */
  transform: translateZ(0);
}

.sm-menu-gallery__label{ color: var(--sm-muted); }
.sm-menu-gallery__count{
  color: var(--sm-muted);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Right Panel + Accordion
   ========================================================= */
.sm-menu-panel{
  border-radius: var(--sm-radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--sm-shadow);
  padding: 18px 16px;
}

.sm-menu-panel__title{
  color: var(--sm-accent);
  font-weight: 600;
  letter-spacing: .02em;
}
.sm-menu-panel__hint{
  color: var(--sm-dim);
  font-size: .92rem;
}

.sm-acc{
  border-top: 1px solid rgba(255,255,255,.08);
}

.sm-acc__btn{
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 10px;
  border: 0;
  background: transparent;
  color: var(--sm-dim);
  font-weight: 700;
  letter-spacing: .08em;
}
.sm-acc__btn:hover{ background: rgba(255,255,255,.03); border-radius: 12px; }

.sm-acc__chev{
  color: var(--sm-dim);
  transition: transform 220ms ease;
}
.sm-acc.is-open .sm-acc__chev{ transform: rotate(180deg); }

.sm-acc__panel{
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease;
}

.sm-acc__inner{
  padding: 0 10px 12px 10px;
}

.sm-item{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255,255,255,.10);
}
.sm-item:last-child{ border-bottom: 0; }

.sm-item__name{
  color: var(--sm-text);
  line-height: 1.35;
  flex: 1 1 auto;
}
.sm-item__price{
  color: var(--sm-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Footer links */
.sm-link{
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}
.sm-link:hover{ color: rgba(255,255,255,.92); }

/* Reduce Motion */
@media (prefers-reduced-motion: reduce){
  .sm-menu-gallery__img,
  .sm-acc__panel,
  .sm-tabs__arrow,
  .sm-tab,
  .sm-acc__chev{
    transition: none !important;
  }
  .sm-tabs__rail{ scroll-behavior: auto; }
}

/* =========================================================
   Accordion title dot (record / record2)
   ========================================================= */

.sm-acc__title{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sm-acc__dot{
  line-height: 1;
  color: rgba(255,255,255,.45);
  transition: color 160ms ease, transform 160ms ease;
}

/* 默认：未展开 → bi-record */
.sm-acc:not(.is-open) .sm-acc__dot{
  /* Bootstrap Icons 用 class 决定形状 */
}

/* 展开态：切换成 bi-record2 */
.sm-acc.is-open .sm-acc__dot{
  color: var(--sm-accent);
}

/* 利用伪元素“换图标”技巧 */
.sm-acc__dot::before{
  content: "\F51A"; /* bi-record */
  font-family: "Bootstrap Icons", sans-serif;
}

.sm-acc.is-open .sm-acc__dot::before{
  content: "\F51C"; /* bi-record2 */
  transform: scale(1.15);
}


/* =========================================================
   Sticky Tabs (Home merge)
   - tabs 粘在 .sm-topnav 底部（由 JS 写入 --sm-header-h）
   - 滚出 #menu 区块后自动释放（sticky 的正常行为）
   ========================================================= */
:root{
  --sm-header-h: 84px; /* 兜底；JS 会实时覆盖成 .sm-topnav 的 bottom */
}

/* ✅ 确保 sticky 不被祖先 overflow 截断 */
#menu{
  position: relative;
  overflow: visible;
}

.sm-menu-tabs{
  position: sticky;
  top: var(--sm-header-h);
  z-index: 30;

  /* 默认不加玻璃，只有 stuck 态才加强（跟你原 menu 页一致） */
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;

  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.sm-menu-tabs.is-stuck{
  background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.30));
  border-bottom-color: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}

/* ✅ 当 tabs stuck 时，让 topnav 和 tabs 之间不出现 1px 缝 */
body.sm-tabs-stuck .sm-topnav{
  border-bottom-color: transparent !important;
}

/* tiny overlap */
body.sm-tabs-stuck .sm-menu-tabs{
  top: calc(var(--sm-header-h) - 1px);
}
