/* KEYAURA+ Landing Page - Design width: 2560px
 * 所有规则都限定在 .ka-viewport 内，放进 WordPress 主题时不影响导航栏和页脚。
 */

.ka-viewport {
  width: 100%;
  font-family: 'KA Harmony', 'HarmonyOS Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: normal;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.ka-viewport img {
  display: block;
  max-width: none;
}

/* 主题常给 h1/h2/p/a/button 单独设字体，继承链会被打断。
   :where() 让这条权重停在 0-1-0，后面各组件自己的 font-family 仍能覆盖 */
.ka-viewport :where(h1, h2, h3, p, a, span, button) {
  font-family: inherit;
  letter-spacing: inherit;
}

/* ===== Scaling Canvas =====
   缩放变量由 <head> 内联脚本在首帧前写入 */
.ka-canvas {
  position: relative;
  width: 2560px;
  zoom: var(--ka-zoom, 1);
}

.ka-section {
  position: relative;
  width: 2560px;
  height: 1200px;
  overflow: hidden;
  background: #fff;
}

.ka-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ka-overlay {
  z-index: 2;
}

.ka-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  line-height: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ka-btn:focus-visible,
.ka-card:focus-visible {
  outline: 4px solid #02885a;
  outline-offset: 4px;
}

/* ===== Typography ===== */
.ka-label {
  font-size: 40px;
  font-weight: 900;
  color: #02885a;
  text-transform: uppercase;
  line-height: normal;
}

.ka-label--bold {
  font-weight: 700;
}

.ka-heading {
  font-size: 72px;
  font-weight: 900;
  line-height: 60px;
  text-transform: uppercase;
  color: #000;
}

.ka-body {
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  color: #000;
}

.ka-body--28 {
  line-height: 28px;
}

.ka-text--light .ka-heading,
.ka-text--light .ka-body {
  color: #fff;
}

.ka-text-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 居中文案块：65K / Battery / Airflow 共用 */
.ka-center-text {
  position: absolute;
  z-index: 1;
  left: 737px;
  top: 122px;
  width: 1086px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  text-align: center;
}

.ka-center-text .ka-text-group {
  width: 922px;
  align-items: center;
}

/* ===== Section 1: Hero ===== */
.ka-hero {
  background: #000;
}

/* 网页字体的行高参数和 Figma 不同，top 按字形实测校准：
   字形上下边与左侧 65K 徽章框（514–815）对齐 */
.ka-hero-dtl {
  position: absolute;
  left: 536px;
  top: 506.5px;
  width: 1794px;
  display: flex;
  flex-direction: column;
  font-family: 'KA Inserat', serif;
  font-size: 392px;
  line-height: 363px;
  letter-spacing: -11.76px;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
}

.ka-hero-dtl-row {
  display: flex;
  align-items: center;
  gap: 337px;
  width: 100%;
  color: rgba(27, 79, 63, 0.9);
}

.ka-hero-dtl-row p {
  flex-shrink: 0;
  height: 363px;
  white-space: nowrap;
  mix-blend-mode: plus-lighter;
}

.ka-hero-dtl-row p:first-child { width: 589px; }
.ka-hero-dtl-row p:last-child  { width: 868px; }

.ka-hero-product {
  position: absolute;
  left: 979px;
  top: 154px;
  width: 602px;
  height: 892px;
}

.ka-hero-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ka-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes ka-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -22px, 0) rotate(-1.2deg); }
}

.ka-hero-logo {
  position: absolute;
  left: 252px;
  top: 397px;
  width: 540px;
  height: 67px;
  font-size: 0;
  line-height: 0;
}

.ka-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ka-hero-badge {
  position: absolute;
  left: 249px;
  top: 514px;
  width: 298px;
  height: 301px;
  padding: 35px 23px 35px 27px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.ka-hero-badge-icon {
  width: 246px;
  height: 130px;
  object-fit: cover;
  flex-shrink: 0;
}

.ka-hero-badge-text {
  height: 49px;
  font-family: 'KA Inserat', serif;
  font-size: 53px;
  line-height: normal;
  letter-spacing: -1.06px;
  color: #1b4f3f;
  text-transform: uppercase;
  white-space: nowrap;
}

.ka-hero-badge-frame {
  position: absolute;
  inset: 0;
  border: 15px solid #1b4f3f;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 175px;
  pointer-events: none;
}

.ka-hero-badge-bar {
  flex-shrink: 0;
  width: 277px;
  height: 15px;
  background: #1b4f3f;
}

.ka-hero-tagline {
  position: absolute;
  left: 249px;
  top: 855px;
  width: 599px;
  font-family: 'KA DIN', 'KA Harmony', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: normal;
  letter-spacing: -0.8px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: #fff;
}

/* 首屏入场：仅在 JS 可用时先隐藏，避免无 JS 时整屏空白
   1. 产品沿自身斜向从左下往右上滑入，同时序列帧转两圈停在正面（帧由 keyaura-hero.js 驱动）
   2. 中间一行分左右两组同时从产品背后弹出：65K 徽章 + DTL 是一组往左，STYLE 往右；
      先挤成一条冲出去，过头一点再回弹落位，颜色保持原样不变亮
   3. 上方 KEY AURA+ 向上、下方标语向下，从中间那行「分开」显现 */
.ka-js .ka-hero-product {
  opacity: 0;
  transform: translate3d(-210px, 450px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
}

.ka-js .ka-hero-dtl-row p,
.ka-js .ka-hero-badge {
  opacity: 0;
}

/* 左组两个元素用同一个缩放原点（DTL 右缘 x=1125、行中线 y≈687），才会像一整块一起伸缩 */
.ka-hero-dtl-row p:first-child { transform-origin: 100% 50%; }
.ka-hero-dtl-row p:last-child  { transform-origin: 0% 50%; }
.ka-hero-badge                 { transform-origin: 876px 174px; }

.ka-js .ka-hero.is-entered .ka-hero-dtl-row p:first-child,
.ka-js .ka-hero.is-entered .ka-hero-badge {
  animation: ka-hero-burst-left 1.15s 1s both;
}

.ka-js .ka-hero.is-entered .ka-hero-dtl-row p:last-child {
  animation: ka-hero-burst-right 1.15s 1s both;
}

/* 入场结束后交还给点击高亮，避免高亮动画替换掉入场动画时重新播一遍 */
.ka-js .ka-hero.is-ready .ka-hero-dtl-row p:first-child,
.ka-js .ka-hero.is-ready .ka-hero-dtl-row p:last-child,
.ka-js .ka-hero.is-ready .ka-hero-badge {
  animation: none;
}

@keyframes ka-hero-burst-left {
  0%   { opacity: 0; transform: translate3d(300px, 0, 0) scale(0.35, 0.86); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  14%  { opacity: 1; }
  52%  { transform: translate3d(-34px, 0, 0) scale(1.05, 0.97); animation-timing-function: cubic-bezier(0.45, 0, 0.4, 1); }
  76%  { transform: translate3d(10px, 0, 0) scale(0.985, 1.01); }
  100% { opacity: 1; transform: none; }
}

@keyframes ka-hero-burst-right {
  0%   { opacity: 0; transform: translate3d(-300px, 0, 0) scale(0.35, 0.86); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  14%  { opacity: 1; }
  52%  { transform: translate3d(34px, 0, 0) scale(1.05, 0.97); animation-timing-function: cubic-bezier(0.45, 0, 0.4, 1); }
  76%  { transform: translate3d(-10px, 0, 0) scale(0.985, 1.01); }
  100% { opacity: 1; transform: none; }
}
.ka-js .ka-hero-logo,
.ka-js .ka-hero-tagline {
  overflow: hidden;
}

.ka-js .ka-hero-logo img,
.ka-js .ka-hero-tagline span {
  display: block;
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 2s;
}

.ka-js .ka-hero-logo img {
  transform: translate3d(0, 110%, 0);
}

.ka-js .ka-hero-tagline span {
  transform: translate3d(0, -110%, 0);
}

.ka-js .ka-hero.is-entered .ka-hero-dtl-row p,
.ka-js .ka-hero.is-entered .ka-hero-badge,
.ka-js .ka-hero.is-entered .ka-hero-logo img,
.ka-js .ka-hero.is-entered .ka-hero-tagline span,
.ka-js .ka-hero.is-entered .ka-hero-product {
  opacity: 1;
  transform: none;
}

.ka-hero-tagline span {
  display: block;
}

/* 点击首屏：从点击处荡开一圈绿光，只照亮背景里的竖条灯带；
   光圈扫过 DTL / STYLE / 65K 时依次点亮，点在产品上时产品被「敲」得晃一下 */
.ka-hero.is-ready {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ka-hero-waves {
  pointer-events: none;
  /* 遮罩由背景亮度生成（暗处保底 38%），光圈扫过时灯带最亮、暗处也看得到一圈 */
  -webkit-mask-image: url("../../images/products/keyaura/hero-wave-mask.webp");
  mask-image: url("../../images/products/keyaura/hero-wave-mask.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mix-blend-mode: plus-lighter;
  overflow: hidden;
}

.ka-hero-wave {
  position: absolute;
  width: 3600px;
  height: 3600px;
  margin: -1800px 0 0 -1800px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 54%, rgba(90, 255, 185, 0.9) 64%, rgba(160, 255, 215, 1) 67%, transparent 72%);
  transform: scale(0);
  animation: ka-hero-wave 1.6s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}

@keyframes ka-hero-wave {
  0%   { transform: scale(0.02); opacity: 1; }
  70%  { opacity: 0.85; }
  100% { transform: scale(1); opacity: 0; }
}

.ka-hero-product-spin {
  width: 100%;
  height: 100%;
  transform-origin: 50% 85%;
}

.ka-hero-product-spin.is-knock {
  animation: ka-hero-knock 0.75s ease-out both;
}

@keyframes ka-hero-knock {
  0%   { transform: none; }
  18%  { transform: rotate(-5deg) scale(1.03); }
  40%  { transform: rotate(3.5deg); }
  62%  { transform: rotate(-1.8deg); }
  82%  { transform: rotate(0.8deg); }
  100% { transform: none; }
}

.ka-hero-dtl-row p.is-lit,
.ka-js .ka-hero.is-ready .ka-hero-dtl-row p.is-lit {
  animation: ka-hero-dtl-lit 1s ease-out both;
}

@keyframes ka-hero-dtl-lit {
  0%   { color: rgba(27, 79, 63, 0.9); }
  22%  { color: rgba(80, 220, 160, 1); }
  100% { color: rgba(27, 79, 63, 0.9); }
}

.ka-hero-badge.is-lit,
.ka-js .ka-hero.is-ready .ka-hero-badge.is-lit {
  animation: ka-hero-badge-lit 1s ease-out both;
}

@keyframes ka-hero-badge-lit {
  0%   { filter: none; }
  22%  { filter: brightness(2.4) saturate(1.2); }
  100% { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ka-js .ka-hero-badge,
  .ka-js .ka-hero-dtl-row p,
  .ka-js .ka-hero-logo img,
  .ka-js .ka-hero-tagline span,
  .ka-js .ka-hero-product {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ka-js .ka-hero.is-entered .ka-hero-dtl-row p:first-child,
  .ka-js .ka-hero.is-entered .ka-hero-dtl-row p:last-child,
  .ka-js .ka-hero.is-entered .ka-hero-badge,
  .ka-hero-wave,
  .ka-hero-product-spin.is-knock,
  .ka-hero-dtl-row p.is-lit,
  .ka-hero-badge.is-lit {
    animation: none;
  }
}

/* ===== Section 2: Feature Grid ===== */
.ka-grid {
  position: absolute;
  left: 640px;
  top: 210px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ka-grid-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 450px;
  height: 780px;
  flex-shrink: 0;
}

.ka-card {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 450px;
  height: 220px;
  border-radius: 30px;
  overflow: hidden;
  background: #efefef;
  color: inherit;
  text-decoration: none;
  cursor: default;
  /* Safari：子元素 transform 时圆角裁切会失效 */
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.ka-card--tall {
  height: 320px;
}

.ka-card-inner {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ka-card:hover .ka-card-inner {
  transform: scale(1.08);
}

.ka-card-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 182px;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 900;
  line-height: normal;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ka-card--tall .ka-card-label {
  top: 282px;
}

.ka-card:hover .ka-card-label {
  letter-spacing: 0.06em;
}

/* 调气卡片：背景 + 刻度 + 产品序列帧，MTL / DTL 字色可对换 */
.ka-feat-air-scale,
.ka-feat-air-product {
  position: absolute;
  pointer-events: none;
}

.ka-feat-air-scale {
  left: 130px;
  top: 8px;
  width: 190px;
  height: 190px;
  transform-origin: center center;
  transition: transform 0.18s linear;
}

.ka-feat-air-product {
  left: 152.5px;
  top: 30.5px;
  width: 145px;
  height: 145px;
}

.ka-feat-air-mtl,
.ka-feat-air-dtl {
  position: absolute;
  z-index: 1;
  top: 92px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  transition: color 0.35s ease;
}

.ka-feat-air-mtl { left: 36px; color: #14b86a; }
.ka-feat-air-dtl { right: 36px; color: #8a8a8a; }

.ka-card-air.is-swapped .ka-feat-air-mtl { color: #8a8a8a; }
.ka-card-air.is-swapped .ka-feat-air-dtl { color: #14b86a; }

/* 360° card */
.ka-card-360 {
  position: relative;
  flex-shrink: 0;
  width: 360px;
  height: 780px;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

.ka-360-header {
  position: absolute;
  z-index: 2;
  left: 42.5px;
  top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ka-360-icon {
  width: 45px;
  height: 50px;
  object-fit: cover;
}

.ka-360-title {
  font-size: 24px;
  font-weight: 900;
  line-height: normal;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 拖拽热区比产品图宽，方便抓取 */
.ka-360-stage {
  position: absolute;
  left: 0;
  top: 96px;
  width: 360px;
  height: 560px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  perspective: 1400px;
}

.ka-360-stage.is-dragging {
  cursor: grabbing;
}

.ka-360-product {
  position: absolute;
  left: 103px;
  top: 0;
  width: 155px;
  height: 560px;
  object-fit: cover;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}

.ka-360-controls {
  position: absolute;
  z-index: 2;
  left: 50.75px;
  top: 686px;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.ka-360-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ka-360-btn {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #fff;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.ka-360-btn img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.ka-360-btn-icon--h { width: 30px; height: 20px; }
.ka-360-btn-icon--v { width: 24px; height: 28px; margin-left: 0.5px; }
.ka-360-btn-icon--r { width: 24px; height: 23px; margin-top: 0.5px; }

.ka-360-btn.is-active,
.ka-360-control[data-action="reset"]:hover .ka-360-btn {
  background: #02885a;
}

.ka-360-control:hover .ka-360-btn {
  transform: scale(1.08);
}

.ka-360-control-label {
  font-family: 'KA Inter', 'KA Harmony', sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
  text-align: center;
}

/* ===== Section 3: Video ===== */
.ka-video {
  height: 1440px;
  background: #000;
}

.ka-video-poster {
  transition: opacity 0.5s ease;
}

.ka-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.ka-video.is-playing .ka-video-player,
.ka-video.is-controls .ka-video-player { opacity: 1; }
.ka-video.is-playing .ka-video-poster,
.ka-video.is-controls .ka-video-poster { opacity: 0; }

#ka-video.is-controls > #ka-video-player { opacity: 1; }
#ka-video.is-controls > .ka-video-poster { opacity: 0; }

.ka-video-play {
  position: absolute;
  z-index: 2;
  left: 1212px;
  top: 652px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.ka-video-play img {
  width: 136px;
  height: 136px;
  object-fit: cover;
}

.ka-video-play:hover {
  transform: scale(1.1);
}

/* 呼吸光圈，提示可点击 */
.ka-video-play::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.7);
  animation: ka-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes ka-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.ka-video.is-controls .ka-video-play {
  opacity: 1;
  pointer-events: auto;
}

.ka-video.is-playing .ka-video-play {
  opacity: 0;
  pointer-events: none;
}

/* ===== Section 4: DTL =====
   进场：背景先从大缩小，产品再上移淡入，快到位时文案跟上，到位后循环播肺吸视频 */
.ka-dtl {
  background: #000;
}

.ka-dtl-bg {
  z-index: 0;
  transform-origin: center center;
}

.ka-dtl-product {
  z-index: 1;
}

/* 按住时只点亮底部灯珠：ID02 的 8 颗灯按视频画面对齐后统一提亮，用滤色叠上去 */
.ka-dtl-light {
  position: absolute;
  z-index: 3;
  left: 1054px;
  top: 741px;
  width: 143px;
  height: 123px;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s linear;
}

.ka-dtl.is-holding .ka-dtl-light {
  opacity: 1;
}

.ka-dtl-video {
  z-index: 2;
  opacity: 0;
}

.ka-dtl-text {
  position: absolute;
  z-index: 3;
  left: 649px;
  top: 957px;
  width: 1262px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.ka-js .ka-dtl-bg {
  transform: scale(1.35);
  transition: transform 1.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ka-js .ka-dtl.is-in .ka-dtl-bg {
  transform: scale(1);
}

.ka-js .ka-dtl-product {
  opacity: 0;
  transform: translate3d(0, 220px, 0);
  transition:
    opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

.ka-js .ka-dtl.is-in .ka-dtl-product {
  opacity: 1;
  transform: none;
  transition-delay: 0.85s;
}

.ka-js .ka-dtl-video {
  transition: opacity 0.45s ease;
  transition-delay: 0s;
}

.ka-js .ka-dtl.is-in .ka-dtl-video {
  opacity: 1;
  transition-delay: 1.9s;
}

.ka-js .ka-dtl-text .ka-heading,
.ka-js .ka-dtl-text .ka-body {
  opacity: 0;
  transform: translate3d(0, 70px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

.ka-js .ka-dtl.is-in .ka-dtl-text .ka-heading,
.ka-js .ka-dtl.is-in .ka-dtl-text .ka-body {
  opacity: 1;
  transform: none;
}

.ka-js .ka-dtl.is-in .ka-dtl-text .ka-heading { transition-delay: 1.5s; }
.ka-js .ka-dtl.is-in .ka-dtl-text .ka-body { transition-delay: 1.64s; }

@media (prefers-reduced-motion: reduce) {
  .ka-js .ka-dtl-bg,
  .ka-js .ka-dtl-product,
  .ka-js .ka-dtl-text .ka-heading,
  .ka-js .ka-dtl-text .ka-body {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ka-js .ka-dtl-video {
    opacity: 1;
    transition: none;
  }
}

.ka-dtl-text .ka-heading {
  width: 922px;
}

/* 按住吸气：顶灯变亮、四周压暗、气流吸进烟嘴；松手吐出一团烟。--ka-inhale 为 0–1 的吸气力度 */
.ka-dtl {
  --ka-inhale: 0;
}

.ka-dtl.is-ready {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.ka-dtl-glow {
  z-index: 2;
  pointer-events: none;
  opacity: var(--ka-inhale);
  background:
    radial-gradient(ellipse 34% 62% at 50% 0%, rgba(255, 214, 140, 0.7), rgba(255, 150, 40, 0.25) 55%, transparent 80%),
    radial-gradient(ellipse 75% 85% at 52% 45%, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
  mix-blend-mode: normal;
}

.ka-dtl-smoke {
  z-index: 4;
  pointer-events: none;
}

.ka-dtl-hold {
  position: absolute;
  z-index: 5;
  left: 1680px;
  top: 470px;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 calc(var(--ka-inhale) * 90px) rgba(255, 160, 40, 0.75);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.ka-dtl.is-ready .ka-dtl-hold {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.ka-dtl.is-holding .ka-dtl-hold {
  transform: scale(calc(0.9 + var(--ka-inhale) * 0.08));
  transition: opacity 0.5s ease, transform 0.15s ease-out;
}

/* 待机呼吸圈，提示可以按 */
.ka-dtl-hold::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 177, 59, 0.8);
  animation: ka-dtl-hold-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

.ka-dtl.is-holding .ka-dtl-hold::before {
  animation: none;
  opacity: 0;
}

@keyframes ka-dtl-hold-pulse {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}

.ka-dtl-hold-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.ka-dtl-hold-ring circle {
  fill: none;
}

.ka-dtl-hold-track {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 3;
}

.ka-dtl-hold-bar {
  stroke: #ffb13b;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 502.65;
  stroke-dashoffset: 502.65;
}

.ka-dtl-hold-big {
  position: relative;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.ka-dtl-hold-small {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

.ka-dtl-hold.is-max .ka-dtl-hold-big {
  color: #ffb13b;
  animation: ka-dtl-max 0.5s ease-in-out infinite alternate;
}

@keyframes ka-dtl-max {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .ka-dtl-hold::before,
  .ka-dtl-hold.is-max .ka-dtl-hold-big {
    animation: none;
  }
}

.ka-dtl-text .ka-body {
  width: 100%;
}

/* ===== Section 5: Big Clouds ===== */
.ka-clouds {
  background: #fafafa;
}

.ka-clouds-head {
  position: absolute;
  left: 480px;
  top: 106px;
  width: 1600px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ka-clouds-head .ka-heading {
  width: 477px;
}

.ka-clouds-intro {
  width: 605px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ka-clouds-intro .ka-label {
  height: 46px;
}

.ka-clouds-media {
  position: absolute;
  left: 480px;
  top: 333px;
  width: 1600px;
  height: 750px;
  border-radius: 50px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* ===== Section 6: Dual Mesh ===== */
.ka-mesh {
  background: #000;
}

.ka-mesh-text {
  position: absolute;
  z-index: 1;
  left: 480px;
  top: 496px;
  width: 828px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ka-mesh-text .ka-text-group {
  width: 965px;
}

/* ===== Section 7: 65K Puffs ===== */
.ka-puffs {
  background: #fdfdfe;
}

.ka-puffs-65k {
  position: absolute;
  left: 947px;
  top: 493px;
  width: 666px;
  height: 348px;
  cursor: pointer;
}

.ka-puffs-65k-body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 85%;
}

.ka-puffs-65k img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* 扫光只落在 65K 字形上 */
.ka-puffs-65k-body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  -webkit-mask: url("../../images/products/keyaura/puffs-65k.png") center / contain no-repeat;
  mask: url("../../images/products/keyaura/puffs-65k.png") center / contain no-repeat;
}

.ka-puffs-stage {
  position: absolute;
  left: 863px;
  top: 790px;
  width: 1049px;
  height: 294px;
  pointer-events: none;
}

.ka-puffs-product {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* 淡入、位移和旋转帧由 keyaura-puffs.js 逐帧驱动 */
.ka-js .ka-puffs-product {
  opacity: 0;
  will-change: transform, opacity;
}

.ka-js .ka-puffs.is-in .ka-puffs-product {
  opacity: 1;
}

.ka-js .ka-puffs.is-landed .ka-puffs-stage {
  animation: ka-puffs-float 4.5s ease-in-out 0.4s infinite;
}

@keyframes ka-puffs-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}

/* 65K：产品停稳后弹出，再扫一道光 */
.ka-js .ka-puffs-65k {
  opacity: 0;
  transform: translate3d(0, 120px, 0) scale(0.55);
}

.ka-js .ka-puffs.is-landed .ka-puffs-65k {
  opacity: 1;
  transform: none;
  animation: ka-65k-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ka-puffs-65k.is-shine .ka-puffs-65k-body::after {
  animation: ka-65k-shine 1.1s ease-in-out both;
}

/* 悬停：果冻晃一下；点击：按下回弹并冒出烟圈 */
.ka-puffs-65k.is-jelly .ka-puffs-65k-body {
  animation: ka-65k-jelly 0.8s ease-out both;
}

.ka-puffs-65k.is-punch .ka-puffs-65k-body {
  animation: ka-65k-punch 0.7s ease-out both;
}

@keyframes ka-65k-jelly {
  0%   { transform: none; }
  25%  { transform: scale(1.08, 0.92) rotate(-2deg); }
  45%  { transform: scale(0.95, 1.06) rotate(1.5deg); }
  65%  { transform: scale(1.03, 0.98) rotate(-0.6deg); }
  85%  { transform: scale(0.99, 1.01); }
  100% { transform: none; }
}

@keyframes ka-65k-punch {
  0%   { transform: none; }
  22%  { transform: scale(1.12, 0.8); }
  55%  { transform: scale(0.94, 1.1) translate3d(0, -18px, 0); }
  100% { transform: none; }
}

.ka-65k-puff {
  position: absolute;
  z-index: 2;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 172, 122, 0.12) 0 42%, rgba(2, 136, 90, 0.75) 56%, rgba(2, 136, 90, 0) 70%);
  pointer-events: none;
  animation: ka-65k-puff var(--dur) cubic-bezier(0.25, 0.6, 0.35, 1) both;
}

.ka-65k-puff:nth-child(3n) {
  background: radial-gradient(circle, rgba(30, 172, 122, 0.95) 0 30%, rgba(30, 172, 122, 0) 60%);
}

@keyframes ka-65k-puff {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(0.2); }
  15%  { opacity: 1; }
  65%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(1.3); }
}

@keyframes ka-65k-pop {
  0%   { opacity: 0; transform: translate3d(0, 120px, 0) scale(0.55); }
  55%  { opacity: 1; transform: translate3d(0, -14px, 0) scale(1.06); }
  75%  { transform: translate3d(0, 4px, 0) scale(0.98); }
  100% { opacity: 1; transform: none; }
}

@keyframes ka-65k-shine {
  from { background-position: 130% 0; }
  to   { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ka-js .ka-puffs-product,
  .ka-js .ka-puffs-65k {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ka-js .ka-puffs.is-landed .ka-puffs-stage,
  .ka-js .ka-puffs.is-landed .ka-puffs-65k,
  .ka-puffs-65k.is-shine .ka-puffs-65k-body::after,
  .ka-puffs-65k.is-jelly .ka-puffs-65k-body,
  .ka-puffs-65k.is-punch .ka-puffs-65k-body {
    animation: none;
  }

  .ka-65k-puff {
    display: none;
  }
}

/* ===== Section 8: Battery ===== */
.ka-battery {
  background: #000;
}

/* ===== Section 9: Airflow ===== */
.ka-airflow {
  background: #fdfdfe;
}

.ka-airflow-text {
  left: 561px;
  width: 1438px;
}

.ka-airflow-box {
  position: absolute;
  left: 480px;
  top: 455px;
  width: 1600px;
  height: 680px;
  border-radius: 50px;
  overflow: hidden;
  background: #d4ffe8;
}

.ka-airflow-tab {
  position: absolute;
  z-index: 1;
  top: 290px;
  width: 440px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    filter 0.4s ease;
}

.ka-airflow-tab span {
  font-size: 66.6px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.ka-airflow-tab--mtl {
  left: 0;
  background: #49ed78;
  border-radius: 0 50px 50px 0;
}

.ka-airflow-tab--dtl {
  right: 0;
  justify-content: flex-end;
  padding-right: 208px;
  background: #ff7d00;
  border-radius: 50px 0 0 50px;
}

/* 文字块右缘距按钮右边 208px，和改居中之前一致，标签变宽时仍贴着右侧 */
.ka-airflow-tab--dtl span {
  width: 171px;
  text-align: left;
}

.ka-airflow-tab:hover,
.ka-airflow-box[data-state="mtl"] .ka-airflow-tab--mtl,
.ka-airflow-box[data-state="dtl"] .ka-airflow-tab--dtl {
  width: 480px;
}

.ka-airflow-box[data-state="mtl"] .ka-airflow-tab--dtl,
.ka-airflow-box[data-state="dtl"] .ka-airflow-tab--mtl {
  opacity: 0.45;
  filter: saturate(0.6);
}

.ka-airflow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ka-airflow-bg--orange {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.ka-airflow-box[data-state="dtl"] .ka-airflow-bg--orange {
  opacity: 1;
}

.ka-airflow-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ka-airflow-ticks img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.ka-airflow-ticks-green,
.ka-airflow-ticks-orange {
  transition: opacity 0.8s ease;
}

.ka-airflow-ticks-green { opacity: 0.72; }
.ka-airflow-ticks-orange { opacity: 0; }

.ka-airflow-dial {
  position: absolute;
  z-index: 2;
  left: 606px;
  top: 145px;
  width: 389px;
  height: 390px;
  border-radius: 50%;
}

.ka-airflow-dial img {
  width: 389px;
  height: 390px;
  object-fit: contain;
  transform: rotate(var(--ka-dial-angle, 0deg));
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ka-airflow-box[data-state="mtl"] { --ka-dial-angle: -45deg; }
.ka-airflow-box[data-state="dtl"] { --ka-dial-angle: 45deg; }

.ka-airflow-box[data-state="mtl"] .ka-airflow-ticks {
  transform: rotate(-12deg);
}

.ka-airflow-box[data-state="dtl"] .ka-airflow-ticks {
  transform: rotate(12deg);
}

.ka-airflow-box[data-state="dtl"] .ka-airflow-ticks-orange { opacity: 0.72; }
.ka-airflow-box[data-state="dtl"] .ka-airflow-ticks-green { opacity: 0; }

/* ===== Section 10: Flavors ===== */
.ka-flavors {
  background: #063d2c;
}

.ka-flavors-panel {
  position: absolute;
  z-index: 2;
  left: 1360px;
  top: 0;
  width: 720px;
  height: 1200px;
  overflow: hidden;
  background: #1eac7a;
}

.ka-flavors-ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 1200px;
  pointer-events: none;
}

.ka-flavors-title.is-bump {
  animation: ka-flavors-bump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ka-flavors-bump {
  0%   { transform: translate3d(0, 0, 0); }
  35%  { transform: translate3d(0, -14px, 0) scale(1.03); }
  100% { transform: translate3d(0, 0, 0); }
}

.ka-flavors-title {
  position: absolute;
  z-index: 1;
  left: 120px;
  top: 468px;
  width: 481px;
  height: 143px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.ka-flavors-bg-next {
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 38%, #000 62%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 38%, #000 62%, #000 100%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0;
  mask-position: 0% 0;
  transition:
    -webkit-mask-position 1.1s cubic-bezier(0.65, 0, 0.35, 1),
    mask-position 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.ka-flavors-bg-next.is-shown {
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

.ka-flavors-swatches {
  position: absolute;
  z-index: 1;
  left: 107px;
  top: 662px;
  width: 507px;
  display: flex;
  gap: 23px;
}

.ka-flavors-swatches .ka-swatch {
  width: 83px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}

.ka-swatch-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ka-swatch);
  box-shadow: 0 0 0 0 #fff;
  transition:
    box-shadow 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ka-swatch:hover .ka-swatch-dot {
  transform: scale(1.3);
}

.ka-swatch.is-active .ka-swatch-dot {
  box-shadow: 0 0 0 3px #fff;
}

.ka-swatch.is-active .ka-swatch-dot.is-pop {
  animation: ka-swatch-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ka-swatch-pop {
  0%   { transform: scale(0.6); }
  60%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.ka-swatch-name {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ka-swatch:hover .ka-swatch-name {
  transform: translate3d(0, -4px, 0);
}

.ka-swatch-name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 83px;
  height: 40px;
  margin-top: 29px;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

/* ===== Section 11: Flavor list ===== */
.ka-flavor-list {
  background: #fafafa;
}

.ka-flavor-list-title {
  position: absolute;
  left: 622.5px;
  top: 100px;
  width: 1315px;
  margin: 0;
  font-size: 72px;
  font-weight: 700;
  line-height: normal;
  color: #000;
  text-align: center;
  text-transform: uppercase;
}

.ka-flavor-list-grid {
  position: absolute;
  left: 68px;
  top: 377px;
  width: 2424px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 107px;
}

.ka-flavor-list-row {
  display: flex;
  align-items: center;
  gap: 87px;
}

.ka-flavor-list-row--wide {
  width: 100%;
}

.ka-flavor-pill {
  display: block;
  width: 540.75px;
  height: 110.153px;
  cursor: default;
}

.ka-flavor-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ka-pill-float 3.6s ease-in-out infinite;
}

.ka-flavor-pill:nth-child(2) img { animation-delay: -1.2s; }
.ka-flavor-pill:nth-child(3) img { animation-delay: -2.4s; }
.ka-flavor-pill:nth-child(4) img { animation-delay: -0.6s; }

.ka-flavor-pill:hover img {
  animation: ka-pill-wobble 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes ka-pill-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}

@keyframes ka-pill-wobble {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.1) rotate(-4deg); }
  45%  { transform: scale(1.08) rotate(3deg); }
  65%  { transform: scale(1.09) rotate(-1.5deg); }
  100% { transform: scale(1.08) rotate(0deg); }
}

.ka-flavor-list-more {
  position: absolute;
  left: 0;
  right: 0;
  top: 1068px;
  margin: 0;
  padding: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  text-align: center;
  text-transform: capitalize;
  white-space: nowrap;
}

/* ===== Section 12: Parameters ===== */
.ka-parameters-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 112px;
  font-size: 72px;
  font-weight: 700;
  line-height: normal;
  color: #000;
  text-align: center;
  text-transform: uppercase;
}

.ka-parameters-box {
  position: absolute;
  left: 480px;
  top: 233px;
  width: 1600px;
  height: 720px;
  border-radius: 35px;
  overflow: hidden;
}

.ka-tags {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 53px;
}

.ka-tags--row1 { top: 1000px; }
.ka-tags--row2 { top: 1075px; }

.ka-tag {
  flex-shrink: 0;
  width: 400px;
  height: 45px;
  border: 2px solid #000;
  border-radius: 22.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #000;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ka-tag:hover {
  background: #000;
  color: #fff;
}

/* ===== 进入视口后上移浮现（类名由 keyaura-reveal.js 添加） ===== */
.ka-js .ka-reveal {
  opacity: 0;
  transform: translate3d(0, 60px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--ka-reveal-delay, 0s);
}

.ka-js .ka-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ka-js .ka-flavor-list .ka-reveal {
  transition-duration: 1.25s;
  transition-delay: 0s;
}

.ka-js .ka-flavor-list .ka-reveal.is-revealed {
  transition-delay: var(--ka-reveal-delay, 0s);
}

.ka-js .ka-flavor-pill.ka-reveal {
  transform: translate3d(0, 120px, 0) scale(0.4) rotate(-14deg);
  transition:
    opacity 0.5s ease,
    transform 0.9s cubic-bezier(0.34, 1.7, 0.5, 1);
}

.ka-js .ka-flavor-pill.ka-reveal:nth-child(even) {
  transform: translate3d(0, 120px, 0) scale(0.4) rotate(14deg);
}

.ka-js .ka-flavor-pill.ka-reveal.is-revealed {
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.ka-js .ka-reveal--zoom {
  transform: scale(0.86);
}

.ka-js .ka-reveal--zoom.is-revealed {
  transform: scale(1);
}

.ka-js .ka-reveal--right {
  transform: translate3d(160px, 0, 0);
}

.ka-js .ka-reveal--right.is-revealed {
  transform: translate3d(0, 0, 0);
}

/* 大口数产品：和文案一样从下方上移淡入，行程稍长一点 */
@media (prefers-reduced-motion: reduce) {
  .ka-hero-product img,
  .ka-video-play::after {
    animation: none;
  }

  .ka-js .ka-reveal,
  .ka-js .ka-hero [data-ka-enter],
  .ka-js .ka-hero-dtl-row p {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }

  .ka-flavor-pill img,
  .ka-flavors-title.is-bump,
  .ka-swatch.is-active .ka-swatch-dot.is-pop {
    animation: none;
  }

  .ka-flavors-bg-next {
    transition: none;
  }

  .ka-card-inner,
  .ka-airflow-dial img,
  .ka-airflow-ticks {
    transition: none;
  }
}
