/* 全局基础 */
body {
  margin: 0;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ===== PC only ===== */
@media (min-width: 769px){
.hero{
  position: relative;
  width: 100%;
  height: clamp(560px, 90vh, 820px);
  overflow: hidden;
  background: url("/assets/img/pages/home/home_poster12.jpg") center/cover no-repeat;

   /* ✅ 关键：开启 container，后面才能用 100cqw */
  container-type: inline-size;
}

/* 这个是舞台 */
.hero-inner{
  position: relative;
  height: 100%;

  /* ✅ 千万别在这里 max-width:1440 + margin auto，否则内容永远不变大 */
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ✅ 核心：缩放容器（卡片+按钮统一缩放） */
.hero-scale{
  position: absolute;
  left: 140px;   /* 你要的位置 */
  top: 180px;

  transform-origin: left top;

  /* ✅ 关键修复：用 1440px 让结果变成“无单位数字” */
  --s: calc(100cqw / 1440px);
  transform: scale(var(--s));
}

/* 下面所有尺寸都用“设计稿尺寸”，不用 clamp */
.hero-card{
  width: 380px;
  border-radius: 16px;
  padding: 28px;

  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

.hero-title{
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  letter-spacing: 0px;
  line-height: 1.25;
  font-size: 38px;
}

.hero-highlight{ color:#27b7ff; font-weight:700; }

.hero-btn-out{
  margin-top: 18px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  height: 46px;
  padding: 0 22px;
  border-radius: 999px;

  color: rgba(255,255,255,0.90);
  text-decoration: none;

  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-btn-out:hover { transform: translateY(-1px); background: rgba(0, 0, 0, 0.42); border-color: rgba(255, 255, 255, 0.22); }
.hero-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  display: inline-block;
}
}
/* 手机端：按钮自动居中到卡片下面 */

@media (max-width: 768px) {

  .hero {
    /* 关键：直接限制高度 */
    min-height: 358px;

    /* 完整显示图片，不裁切 */
    background: url("home_folder/home_page/home_poster12.jpg")
      top center / contain no-repeat;

    /* 不要任何底色 */
    background-color: transparent;
  }


  /* 下面所有尺寸都用“设计稿尺寸”，不用 clamp */
.hero-card{
  width: 220px;
  border-radius: 16px;
  padding: 28px;

  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}
.hero-scale{ position:absolute; left:16px; top:68px; }
.hero-title{
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.25;
  font-size: 21px;
}

.hero-highlight{ color:#27b7ff; font-weight:700; }

.hero-btn-out{
  margin-top: 18px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  height: 46px;
  padding: 0 22px;
  border-radius: 999px;

  color: rgba(255,255,255,0.90);
  text-decoration: none;

  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  display: inline-block;
}
}

/* =========================================================
   ✅ Hero 移动端优化版
   桌面端不动，只替换你原来的手机端
========================================================= */
@media (max-width: 768px){

  .hero{
    position: relative;
    width: 100%;
    min-height: 560px;
    height: auto;
    overflow: hidden;
    margin-top: 0px;

    /* ✅ 完整显示图片，不裁切 */
    background-image: url("/assets/img/pages/home/home_poster12.jpg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
    background-color: transparent;
  }

  .hero-inner{
    position: relative;
    width: 100%;
    min-height: 360px;
    height: 100%;
    padding: 0;
    margin: 0;
  }

  /* ✅ 手机端内容组：不再 scale，直接独立排版 */
  .hero-scale{
    position: absolute;
    left: 14px;
    top: 52px;
    transform: none;
    transform-origin: left top;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card{
    width: min(250px, calc(100vw - 32px));
    border-radius: 14px;
    padding: 18px 18px 16px;

    background: rgba(0,0,0,0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.16);
  }

  .hero-title{
    margin: 0;
    color: rgba(255,255,255,0.94);
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.35;
    font-size: 22px;
  }

  .hero-title br{
    display: block;
  }

  .hero-highlight{
    color:#27b7ff;
    font-weight:700;
  }

  .hero-btn-out{
    margin-top: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 40px;
    padding: 0 18px;
    border-radius: 999px;

    color: rgba(255,255,255,0.92);
    font-size: 13px;
    text-decoration: none;

    background: rgba(0,0,0,0.30);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  }

  .hero-btn-out:hover{
    transform: none;
    background: rgba(0,0,0,0.30);
    border-color: rgba(255,255,255,0.14);
  }

  .hero-dot{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    display: inline-block;
  }
}


/* =========================================================
   ✅ 小屏手机
========================================================= */
@media (max-width: 520px){

  .hero{
    min-height: 320px;
    background-size: contain;
    background-position: top center;
  }

  .hero-inner{
    min-height: 320px;
  }

  .hero-scale{
    left: 12px;
    top: 42px;
  }

  .hero-card{
    width: min(220px, calc(100vw - 24px));
    padding: 16px 16px 14px;
    border-radius: 12px;
  }

  .hero-title{
    font-size: 19px;
    line-height: 1.34;
    letter-spacing: 0.5px;
  }

  .hero-btn-out{
    margin-top: 10px;
    height: 36px;
    padding: 0 16px;
    font-size: 12px;
    gap: 7px;
  }

  .hero-dot{
    width: 6px;
    height: 6px;
  }
}


/* =========================================================
   ✅ 超小屏兜底
========================================================= */
@media (max-width: 390px){

  .hero{
    min-height: 300px;
  }

  .hero-inner{
    min-height: 300px;
  }

  .hero-scale{
    left: 10px;
    top: 36px;
  }

  .hero-card{
    width: min(200px, calc(100vw - 20px));
    padding: 14px 14px 12px;
  }

  .hero-title{
    font-size: 17px;
    line-height: 1.32;
  }

  .hero-btn-out{
    height: 34px;
    padding: 0 14px;
    font-size: 11px;
  }
}
/* ===== Products Section ===== */
.products{
  background: #fff;
  padding: 56px 0 70px;
}

.products-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.products-grid{
  display: grid;
  gap: 26px;
}

.products-grid--top{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.products-grid--bottom{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Card base */
.p-card{
  position: relative;
  background: #fcfcfc;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 22px 22px 64px; /* 预留底部给 CTA */
}

/* Big vs small height */
.p-card--big{
  min-height: 320px;
}

.p-card--small{
  min-height: 220px;
}

/* Titles */
.p-title{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2b2b2b;
}

.p-title--small{
  font-size: 14px;
  font-weight: 500;
  color: #4a4a4a;
}

/* Media */
.p-media{
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 78%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-card--small .p-media{
  top: 58%;
  width: 74%;
  height: 68%;
}

.p-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* CTA button (bottom-right) */
.p-cta{
  position: absolute;
  right: 18px;
  bottom: 16px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  height: 32px;
  padding: 0 14px;

  border-radius: 999px;
  background: #fff;
  color: #1a73e8;

  border: 1px solid rgba(26,115,232,0.55);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;

  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.p-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  background: rgba(26,115,232,0.06);
}

.p-cta-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a73e8;
  display: inline-block;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .products-grid--bottom{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .products{
    padding: 36px 0 52px;
    margin-top: -100px;
  }
}

@media (max-width: 768px){
  .products{
    padding: 36px 0 52px;
  }

  .products-grid--top{
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .products-grid--bottom{
    grid-template-columns: 1fr;
  }

  .p-card{
    padding: 18px 18px 60px;
  }

  .p-card--big{ min-height: 300px; }
  .p-card--small{ min-height: 210px; }

  .p-media{
    width: 84%;
  

  }
}

/* 初始状态（隐藏） */
.p-card {
  opacity: 0;
  transform: translateY(40px);
}

/* 激活后 */
.p-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ===== home Poster 2 ===== */
.home-poster2{
  width: 100%;
  padding: clamp(40px, 6vw, 120px) 0;  /* 上下留白，越大屏越松 */
  background: #f3f4f6;               /* 页面背景 */
}


.home-poster2 img{
  display: block;
  width: 100%;
  max-width: 1440px;     /* 窗口最大宽度（重点） */
  margin: 0 auto;

  border-radius: 20px;  /* 圆角 */
  background: #fff;

  box-shadow:
    0 30px 80px rgba(0,0,0,.12),
    0 10px 30px rgba(0,0,0,.08);
}

/* ===== Poster 3 Section ===== */
.poster3{
  position: relative;
  width: 100%;
  min-height: 880px;
}

/* 背景图 */
.poster3-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 内容容器 */
.poster3-inner{
  position: relative;
  z-index: 1;

  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
  padding-top: 200px;   /* 控制整体位置 */

  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}

/* 左侧文案 */
.poster3-text{
  display: flex;
  color: #1f2a37;
}

.poster3-sub{
  font-size: 70px;
  font-weight: 400;
  color: #959596;
  letter-spacing: 0px;
  margin: 0px; 
}

.poster3-title{
  display: flex;
  align-items: center;   /* 垂直居中 */
  font-size: 50px;
  font-weight: 600;
  line-height: 0.2;
  color: #2f3a4a;
  letter-spacing: 0px;
  margin: 40px; 
}

.poster3-title span{
  color: #27b7ff; /* 蓝色强调 */
  font-weight: 700;
}

.glass-panel{
  width: 500px;
  max-width: 80%;

  display: flex;
  flex-direction: column;
  gap: 6px;              /* 用 gap 控制字与字间距 */

  padding: 32px 48px;     /* ✅ 对称、可控 */
  background: rgba(255, 255, 255, 0.18);   /* 关键：低透明白 */
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);

  border-radius: 18px;

/* 轻边框 + 内发光，玻璃感立刻出来 */
border: 1px solid rgba(255, 255, 255, 0.35);

box-shadow:
  0 20px 48px rgba(33, 181, 249, 0.22),  /* 外阴影 */
  inset 0 1px 1px rgba(255,255,255,0.35); /* 内高光 */

}


/* ===== Poster 3 Mobile ===== */
@media (max-width: 768px){

  /* 你要求固定 */
  .poster3{
    min-height: 360px;
  }

  /* 背景：移动端更“完整显示”一点，避免裁切太狠 */
  .poster3-bg{
    object-fit: cover;          /* 你要完整可改成 contain，但会留空 */
    object-position: 60% center;    /* 可微调：left center / 60% center */
  }

  /* 内容：从两列变一列，且不要 200px 顶死 */
  .poster3-inner{
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;

    padding-top: 0;             /* ✅ 覆盖 PC 的 200px */
    padding: 24px 16px 24px;    /* ✅ 移动端内边距 */
    align-items: start;
  }

  /* 左侧文案容器 */
  .poster3-text{
    display: block;             /* ✅ 不要 flex，不然你文字布局会怪 */
  }

  /* 玻璃框：移动端更窄、更贴合内容 */
  .glass-panel{
    width: min(140px, 60vw);    /* ✅ 自动适配手机宽 */
    max-width: 60vw;
    
    padding: 22px 22px;         /* ✅ 移动端呼吸感 */
    gap: 3px;                  /* ✅ 控制两行间距（更小） */

    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* 第一行字 */
  .poster3-sub{
    font-size: 20px;
    letter-spacing: 0px;
    margin: 0;                  /* ✅ 干掉默认 margin */
    line-height: 1.2;
  }

  /* 第二行蓝字 */
  .poster3-title{
    font-size: 17px;
    letter-spacing: 0px;
    margin: 10px;                  /* ✅ 你的 margin:10; 是错的 */
    line-height: 1.15;          /* ✅ 干掉 0.2（手机会挤死） */

    display: block;             /* ✅ 不要 flex */
  }
}

@media (max-width: 768px){
  .poster3-text{ margin-top: 70px; }  /* 往下 */
  /* 或 */
  .poster3-text{ margin-left: 20px; }  /* 往右 */
}

/* ===== Feature: Left Image + Right Glass Panel ===== */
.feature-r290{
  width: 100%;
  padding: clamp(120px, 5vw, 180px) 0;
  background: #fff; /* 这一段如果你的页面本身有底色可删 */
}

.feature-r290__inner{
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 48px;

  display: grid;
  grid-template-columns: 1.35fr 0.9fr; /* 左大右小，接近你图 */
  gap: clamp(16px, 2.2vw, 32px);
  align-items: center;
}

/* 左侧图片 */
.feature-r290__media img{
  width: 110%;
  height: auto;
  display: block;

  border-radius: 14px;
  box-shadow:
    0 18px 46px rgba(0,0,0,0.14),
    0 6px 18px rgba(0,0,0,0.08);
}

/* 右侧区域：用于把玻璃框放到“右中” */
.feature-r290__panel{
  width: 120%;
  height: auto;
  display: block;
  display: flex;
  justify-content: center;   /* 横向居中 */
  align-items: center;       /* 纵向居中 */
}

/* 玻璃框本体 */
.feature-r290__panel-inner{
  overflow: hidden;                 /* 让高光层被圆角裁掉 */
  /* 毛玻璃 & 外观 */
  padding: 132px 148px;
  border-radius: 20px;
/* 玻璃底色： */
  background: rgba(156, 150, 150, 0.22);

  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);

  border: 3px solid rgba(225, 40, 40, 0.45);

  box-shadow:
    0 34px 80px rgba(226, 54, 54, 0.18),
    0 10px 22px rgba(151, 6, 6, 0.1);
}

/* 顶部高光 + 玻璃质感 */
.feature-r290__panel-inner::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  pointer-events:none;

  background:
    radial-gradient(120% 80% at 25% 18%,
      rgba(255,255,255,0.75) 0%,
      rgba(255,255,255,0.25) 45%,
      rgba(255,255,255,0.00) 70%),
    linear-gradient(135deg,
      rgba(255,255,255,0.30) 0%,
      rgba(255,255,255,0.10) 45%,
      rgba(255,255,255,0.00) 100%);

  mix-blend-mode: screen;           /* 关键：让高光“像玻璃” */

  /* ✅ 核心三行 */
  display: flex;
  flex-direction: column;
  justify-content: center;   /* ⬅️ 垂直居中 */
  align-items: center;       /* ⬅️ 水平居中 */
  text-align: center;        /* ⬅️ 文字居中 */
}



/* 标题 */
.feature-r290__title{
  margin: 0;
  font-weight: 500;
  color: #1f2a37; /* 如果你的图背景亮，改成深色 */
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.25;
  letter-spacing: 0px; /* 字间距：更像你图的“拉开”感觉 */
}

/* 副标题 */
.feature-r290__sub{
  margin: 18px 0 0 0;
  font-size: clamp(16px, 1.6vw, 22px);
  color: rgba(31,42,55,0.7); /* 如果背景亮，改深色 */
  letter-spacing: 0px;
}


/* ===== Mobile: 上下排 ===== */
@media (max-width: 768px){
  .feature-r290{
    width: 100%;
    padding: 48px 0;
    background: #fff;
  }

  .feature-r290__inner{
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-r290__media{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .feature-r290__media img{
    display: block;
    width: min(94vw, 520px);   /* 👈 图片放大 */
    max-width: 120%;
    height: auto;
    border-radius: 16px;
    box-shadow:
      0 18px 46px rgba(0,0,0,0.12),
      0 6px 18px rgba(0,0,0,0.08);
  }

  .feature-r290__panel{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .feature-r290__panel-inner{
    width: 100%;
    padding: 24px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-r290__title{
    letter-spacing: 0;
  }


.feature-r290__panel{
  width: 100%;
  height: auto;
  display: block;
  display: flex;
  justify-content: center;   /* 横向居中 */
  align-items: center;       /* 纵向居中 */
}

.feature-r290__panel-inner{
  /* 毛玻璃 & 外观 */
  padding: 32px 48px;
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);

  /* ✅ 核心：让文字在框内居中 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
}

/* ===== Feature Aroma (Left Text + Right Image) ===== */
.feature-aroma{
  width: 100%;
  padding: clamp(80px, 6vw, 140px) 0;
  background: #fff;
}

.feature-aroma__inner{
  max-width: 1940px;
  margin: 0 auto;
  padding: 0 48px;

  display: grid;
  grid-template-columns: 0.9fr 1.35fr; /* 左小右大：符合你图 */
  gap: clamp(18px, 2.6vw, 46px);
  align-items: center;
}

/* 右侧图 */
.feature-aroma__media img{
  width: 100%;
  height: auto;
  display: block;

  border-radius: 16px;
  box-shadow:
    0 18px 46px rgba(0,0,0,0.12),
    0 6px 18px rgba(0,0,0,0.08);
}

/* 左侧文案容器（让文字在左侧区域“垂直居中”） */
.feature-aroma__text{
  display: flex;
  align-items: center;
}

/* 标题 note: 这里用 grid/line-height 来控制两行间距 */
.feature-aroma__title{
  margin: 0;
  display: grid;
  gap: 22px; /* 两行间距（你要更小就改这里 22->14） */
}

/* 第一行：看不见的 */
.feature-aroma__title-top{
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 300;
  color: rgba(99, 97, 97, 0.85);
  letter-spacing: 0px;

  /* 让它更像图里那种“轻” */
  text-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* 第二行：—— 香氛才高级 */
.feature-aroma__title-line{
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

/* 绿色横线 */
.feature-aroma__dash{
  width: clamp(24px, 5vw, 90px);
  height: 3px;
  border-radius: 999px;
  background: #31ff7a;
  box-shadow: 0 10px 24px rgba(49,255,122,0.22);
}

/* 绿色大字 */
.feature-aroma__green{
  font-size: clamp(24px, 4vw, 68px);
  font-weight: 500;
  color: #31ff7a;
  letter-spacing: 0px;
  text-shadow: 0 10px 30px rgba(49,255,122,0.18);
}

/* ✅ 如果你想整体文案靠中一点（更贴近你图左侧位置） */
@media (min-width: 1024px){
  .feature-aroma__text{
    padding-left: clamp(16px, 3.6vw, 80px);
  }
}

/* ===== Mobile: 上下排 ===== */
@media (max-width: 768px){
  .feature-aroma{
    padding: 56px 0;
  }

  .feature-aroma__inner{
    grid-template-columns: 1fr;
    padding: 0 18px;
  }

  .feature-aroma__text{
    justify-content: center;
    text-align: center;
  }

  .feature-aroma__title-line{
    justify-content: center;
  }

  .feature-aroma__media img{
    border-radius: 14px;
  }
}

/* 初始状态 */
.home-poster2 {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: 
    opacity 0.8s ease,
    transform 1s cubic-bezier(.22,.61,.36,1);
}

/* 触发后 */
.home-poster2.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 初始状态 */
.poster3 .glass-panel {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(.22,.61,.36,1);
}

/* 触发后 */
.poster3.is-active .glass-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 初始状态 */
.feature-r290__media,
.feature-r290__panel-inner {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(.22,.61,.36,1);
}

/* 触发后 */
.feature-r290.is-active .feature-r290__media,
.feature-r290.is-active .feature-r290__panel-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Aroma Enter Animation (Play once + Freeze) ===== */




/* ===== Section 6 : Smart Space Cases ===== */
.section-cases{
  width: 100%;
  padding: 2px 0;
  background: url("home_folder/home_page/section6_bg.jpg") center / cover no-repeat;
}

.section-cases__inner{
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 64px;
}

/* 标题 */
.section-cases__header{
  margin-bottom: 48px;
}

.section-cases__title{
  font-size: 28px;
  font-weight: 600;
  color: #50A7F4;
  margin-bottom: 0;
}

.section-cases__line{
  display: inline-block;
  width: 28px;
  height: 3px;
  background: #50A7F4;
  margin-top: 0px;
}

/* 卡片列表 */
.section-cases__list{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

/* 单张卡片 */
.case-card{
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 22px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12),
    0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 460px;          /* 不要再犹豫 */
  padding: 0;             /* 🔥 重点：图片区不能被 padding 干扰 */
  overflow: hidden;
}

/* 图片 */
.case-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

/* 标题 */
.case-card h3{
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: #1f2a37;
  margin-bottom: 10px;
}

/* 描述 */
.case-card p{
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 14px;
}

/* 按钮 */
.case-btn{
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 10px;
  align-self: flex-start;
  font-size: 13px;
  color: #2b7cff;
  text-decoration: none;
  border: 1px solid #2b7cff;
  border-radius: 999px;
  transition: all .2s ease;
}

.case-btn:hover{
  background: #2b7cff;
  color: #fff;
}

.section-cases__viewport{
  overflow-x: hidden;
  overflow-y: visible;   /* ✅ 允许卡片上下放大 */
  padding: 80px 0;       /* ✅ 给 scale 留空间（核心） */
}

.section-cases__track{
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: stretch;

  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  overflow: visible;   /* ✅ 必须 */
}


.case-card.is-active{
  transform: scale(1.1);          /* ✅ 整体 1:1 放大 */
  opacity: 1;
  z-index: 10;                    /* ✅ 压住其它卡 */
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.case-card__media{
  height: 50%;
  width: 100%;
  overflow: hidden;
}

.case-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;   /* 圆角交给 card */
}

.case-card h3,
.case-card p,
.case-card .case-btn{
  padding: 0 18px;
}

.case-card h3{ margin-top: 16px; }

/* ===== Popover (了解更多弹窗) ===== */
.case-pop{
  position: fixed;
  z-index: 9999;

  width: 360px;              /* ← 想多大改这里 */
  max-width: 90%;

  padding: 20px 24px;        /* ← 内边距决定“厚度感” */

  background: #fff;
  color: #111827;
  border-radius: 14px;

  box-shadow:
    0 24px 60px rgba(0,0,0,.18),
    0 10px 22px rgba(0,0,0,.10);

  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  
  pointer-events: none;
}

.case-pop.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.case-pop__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Section 6 移动端优化 ===== */
@media (max-width: 768px){

  .section-cases{
    padding: 32px 0 20px;
    background-position: center;
    background-size: cover;
  }

  .section-cases__inner{
    max-width: 100%;
    padding: 0 16px;
  }

  /* 标题区 */
  .section-cases__header{
    margin-bottom: 20px;
  }

  .section-cases__title{
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .section-cases__line{
    width: 22px;
    height: 3px;
    margin-top: 2px;
  }

  /* 外层滚动区 */
  .section-cases__viewport{
    overflow-x: auto;
    overflow-y: visible;
    padding: 12px 0 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .section-cases__viewport::-webkit-scrollbar{
    display: none;
  }

  /* track 不再强制居中，改为内容自然横滑 */
  .section-cases__track{
    display: block;
    overflow: visible;
    transform: none !important;
  }

  /* 列表改成横向卡片流 */
  .section-cases__list{
    display: flex;
    gap: 14px;
    width: max-content;
    padding-right: 16px;
  }

  /* 单张卡片 */
  .case-card{
    flex: 0 0 82vw;
    width: 82vw;
    max-width: 320px;
    min-height: 380px;
    height: auto;
    border-radius: 16px;
    box-shadow:
      0 14px 32px rgba(0,0,0,0.10),
      0 4px 12px rgba(0,0,0,0.06);
    transform: none !important;
  }

  /* 手机端不建议做放大卡，容易挤 */
  .case-card.is-active{
    transform: none !important;
    box-shadow:
      0 14px 32px rgba(0,0,0,0.10),
      0 4px 12px rgba(0,0,0,0.06);
    z-index: auto;
  }

  /* 图片区域 */
  .case-card__media{
    height: 180px;
    width: 100%;
    overflow: hidden;
  }

  .case-card__media img,
  .case-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
  }

  /* 文字区域 */
  .case-card h3,
  .case-card p,
  .case-card .case-btn{
    padding-left: 14px;
    padding-right: 14px;
  }

  .case-card h3{
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
  }

  .case-card p{
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: #5f6b7a;
  }

  /* 按钮 */
  .case-btn{
    margin-top: auto;
    margin-bottom: 16px;
    margin-left: 14px;
    align-self: flex-start;
    font-size: 13px;
    line-height: 1;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
  }

  /* 弹窗 */
  .case-pop{
    width: calc(100vw - 32px);
    max-width: none;
    padding: 16px 18px;
    border-radius: 12px;
  }

  .case-pop__text{
    font-size: 13px;
    line-height: 1.7;
  }
}