/* KEYOS Landing Page - Design width: 2560px */

:where(#keyos-detail-root),
:where(#keyos-detail-root) *,
:where(#keyos-detail-root) *::before,
:where(#keyos-detail-root) *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* overflow-x 必须留在 html/body：画布固定 2560px，缩放后仍可能溢出零点几
   像素。clip 不创建滚动容器，不会破坏卡屏段的 position: sticky。 */
html,
body {
  width: 100%;
  overflow-x: clip;
}

/* 字体和背景挂在根容器上靠继承传给画布；写在 body 上会连主题一起改掉 */
#keyos-detail-root {
  background: #fff;
  font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:where(#keyos-detail-root) img {
  display: block;
  max-width: none;
}

/* ===== Scaling Container ===== */
.ko-viewport {
  width: 100%;
}

.ko-canvas {
  width: 2560px;
  position: relative;
  zoom: var(--ko-zoom, 1);
}

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

/* ===== Section Base ===== */
.ko-section {
  position: relative;
  width: 2560px;
  height: 1200px;
  overflow: hidden;
}

.ko-features-3d { background: #fff; }
.ko-lifestyle   { height: 3200px; background: #000; overflow: visible; }
.ko-double-hit  { background: #fafafa; }
.ko-taste-rush  { height: 3200px; background: #000; overflow: visible; }
.ko-battery     { height: 3200px; background: #fdfdfe; overflow: visible; }
.ko-puffs       { background: #000; }
.ko-flavors     { background: #fff; }
.ko-parameters  { background: #f3c691; }

/* ===== Typography ===== */
.ko-label {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: normal;
  background: linear-gradient(90deg, #ffb766 0%, #a65d02 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ko-label--inline {
  font-size: 72px;
  line-height: 1;
}

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

.ko-heading--hero {
  font-size: 199px;
  line-height: normal;
  color: #fff;
}

.ko-heading--white {
  color: #fff;
}

.ko-subheading {
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: normal;
}

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

.ko-body--center {
  text-align: center;
}

.ko-body--white {
  color: #fff;
}

.ko-text-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ko-text-group--center {
  align-items: center;
  text-align: center;
}

.ko-text-block {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 828px;
}

.ko-text-block--left {
  left: 480px;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== Reveal Animation ===== */
.ko-reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--ko-reveal-delay, 0s);
  will-change: opacity, transform;
}

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

/* 本身依靠 translateX 居中，需保留水平位移 */
.ko-parameters-title.ko-reveal,
.ko-parameters-box.ko-reveal {
  transform: translate3d(-50%, 36px, 0);
}

.ko-parameters-title.ko-reveal.is-revealed,
.ko-parameters-box.ko-reveal.is-revealed {
  transform: translate3d(-50%, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .ko-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ko-parameters-title.ko-reveal,
  .ko-parameters-box.ko-reveal {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ===== Section 1: Hero ===== */
.ko-hero   { height: 1200px; overflow: hidden; }

.ko-hero-sticky {
  position: relative;
  width: 2560px;
  height: 1200px;
  overflow: hidden;
  background: linear-gradient(
    111.87deg,
    rgb(253, 199, 137) 9.47%,
    rgb(189, 120, 53) 103.77%
  );
}

.ko-hero-leaf {
  position: absolute;
  left: 50%;
  top: calc(50% + 100px);
  width: 828px;
  height: 676px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  will-change: opacity, transform;
}

.ko-hero-title {
  position: absolute;
  left: 50%;
  top: calc(50% + 100px);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 550px;
  pointer-events: none;
  z-index: 2;
  will-change: gap, opacity;
}

.ko-hero-title-word {
  font-family: 'Herculine', sans-serif;
  font-weight: 400;
  font-size: 500px;
  line-height: 1;
  color: #863f0a;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ko-hero-header {
  position: absolute;
  left: calc(50% + 0.5px);
  top: 122px;
  width: 737px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
  z-index: 3;
}

.ko-hero-logo,
.ko-hero-tagline {
  will-change: transform, opacity;
}

.ko-hero-logo {
  width: 556px;
  height: 94px;
  object-fit: contain;
  pointer-events: none;
}

.ko-hero-tagline {
  width: 100%;
  font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 100;
  font-size: 37px;
  line-height: normal;
  color: #000;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.ko-hero-hand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 4;
  will-change: transform, opacity;
}

/* ===== Section 2: 3D Grid ===== */
.ko-grid-3d {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  align-items: center;
}

.ko-grid-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 530px;
  flex-shrink: 0;
}

.ko-card {
  position: relative;
  background: #efefef;
  border-radius: 30px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.ko-card-hover-zoom:hover .ko-card-inner {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .ko-card-hover-zoom .ko-card-inner {
    transition: none;
  }

  .ko-card-hover-zoom:hover .ko-card-inner {
    transform: none;
  }
}

.ko-card-label {
  position: absolute;
  z-index: 2;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: normal;
  pointer-events: none;
  background: linear-gradient(90deg, #ffb766 0%, #a65d02 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ko-card-lg {
  width: 530px;
  height: 440px;
}

.ko-card-sm {
  width: 530px;
  height: 285px;
}

.ko-card-360 {
  width: 500px;
  height: 900px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 30px;
}

.ko-360-header {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 25px;
}

.ko-360-icon {
  width: 43px;
  height: 50px;
  object-fit: contain;
}

.ko-360-title {
  font-size: 24px;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  white-space: nowrap;
}

.ko-360-product {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 170px;
  transform: translateX(-50%);
  width: 147px;
  height: 530px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.ko-360-product.is-dragging {
  cursor: grabbing;
}

.ko-360-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.ko-360-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.ko-control-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.ko-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  transition: background 0.25s ease;
}

.ko-control-btn--active {
  background: #000;
}

/* Vertical：黑线图标，选中后反色为白 */
.ko-control-item[data-mode="vertical"] .ko-control-btn--active img {
  filter: invert(1);
}

/* Horizontal：白线黑底图标，未选中时反色；选中后保持原图 */
.ko-control-item[data-mode="horizontal"] .ko-control-btn:not(.ko-control-btn--active) img {
  filter: invert(1);
}

.ko-control-item[data-mode="horizontal"] .ko-control-btn--active img {
  filter: none;
}

.ko-control-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.25s ease;
}

.ko-control-item[data-action="reset"] .ko-control-btn:hover {
  background: #000;
}

.ko-control-item[data-action="reset"] .ko-control-btn:hover img {
  filter: invert(1);
}

.ko-control-item span {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #000;
  text-align: center;
  line-height: normal;
}

/* ===== Section 3: Lifestyle（卡屏叙事） ===== */
.ko-lifestyle-sticky {
  position: sticky;
  top: 0;
  width: 2560px;
  height: 1200px;
  overflow: hidden;
  background: #000;
}

.ko-lifestyle-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ko-lifestyle-bg,
.ko-lifestyle-a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ko-lifestyle-intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: opacity;
}

.ko-lifestyle-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ko-lifestyle-label,
.ko-lifestyle-perfect,
.ko-lifestyle-companion,
.ko-lifestyle-desc {
  position: absolute;
  left: 50%;
  transform: translate3d(-50%, 70px, 0);
  text-align: center;
  line-height: normal;
  margin: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.ko-lifestyle-label {
  top: 380px;
  width: 1318px;
}

.ko-lifestyle-perfect {
  top: 434.5px;
  width: 928px;
  line-height: 1;
}

.ko-lifestyle-companion {
  top: 618.5px;
  width: 928px;
  line-height: 1;
}

.ko-lifestyle-desc {
  top: 742.5px;
  width: 1318px;
  text-transform: capitalize;
  white-space: nowrap;
}

/* ===== Section 4: Double Hit ===== */
.ko-double-hit-video {
  z-index: 1;
}

.ko-double-hit-text {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 122px;
  transform: translateX(-50%);
  width: 1086px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
}

.ko-double-hit-text .ko-text-group {
  gap: 5px;
  width: 922px;
}

.ko-double-hit-text > .ko-body {
  white-space: nowrap;
}

/* ===== Section 5: Taste the Rush ===== */
.ko-rush-sticky {
  position: sticky;
  top: 0;
  width: 2560px;
  height: 1200px;
  overflow: hidden;
  background: #000;
}

.ko-rush-sticky .ko-text-block {
  z-index: 5;
  left: 480px;
  top: calc(50% + 0.5px);
  width: 828px;
  gap: 30px;
}

.ko-rush-sticky .ko-text-group {
  gap: 15px;
}

.ko-rush-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.ko-rush-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 2560px;
  height: 1200px;
  display: block;
  pointer-events: none;
}

/* 流光脉冲叠加在静态光丝之上，screen 等效于加色 */
.ko-rush-canvas--flow {
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ko-rush-canvas--flow.is-active {
  opacity: 1;
}

/* 烟雾层（序列帧 500×800）— Figma 1:68 → 22:14 */
.ko-rush-smoke-wrap {
  position: absolute;
  z-index: 1;
  left: 1515px;
  top: -178px;
  width: 317px;
  height: 507px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.ko-rush-smoke {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

/* 烟层（YAN.png）— Figma 1:68 → 21:12 */
.ko-rush-cigarette-wrap {
  position: absolute;
  z-index: 2;
  left: 1649px;
  top: 819px;
  width: 64px;
  height: 566px;
  opacity: 0;
  will-change: transform, opacity;
}

.ko-rush-cigarette {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

/* 产品层（siyin.png）— Figma 1:68 → 21:9 */
.ko-rush-device-wrap {
  position: absolute;
  z-index: 3;
  left: 1594px;
  top: 216px;
  width: 173px;
  height: 683px;
  opacity: 0;
  will-change: transform, opacity;
}

.ko-rush-siyin {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

/* ===== Section 6: Battery ===== */
.ko-battery-sticky {
  position: sticky;
  top: 0;
  width: 2560px;
  height: 1200px;
  overflow: hidden;
  background: #fdfdfe;
}

.ko-battery-text {
  position: absolute;
  left: 50%;
  top: 122px;
  transform: translateX(-50%);
  width: 1086px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ko-battery-text .ko-text-group {
  gap: 0;
  width: 922px;
}

.ko-battery-visual {
  position: absolute;
  left: 50%;
  top: calc(50% + 139.5px);
  transform: translate(-50%, -50%);
  width: 1260px;
  height: 165px;
}

.ko-battery-x12 {
  position: absolute;
  z-index: 1;
  left: 993px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 922px;
  font-size: 292px;
  font-weight: 100;
  color: #a66fd4;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, contents;
}

.ko-battery-cigarette-wrap {
  position: absolute;
  z-index: 2;
  left: 620px;
  top: 50px;
  width: 640px;
  height: 66px;
  overflow: visible;
  opacity: 0;
  will-change: transform, opacity;
}

.ko-battery-cigarette {
  display: block;
  width: 640px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

.ko-battery-device-wrap {
  position: absolute;
  z-index: 3;
  left: 44px;
  top: 1px;
  width: 649px;
  height: 165px;
  overflow: visible;
  opacity: 0;
  will-change: transform, opacity;
}

.ko-battery-device {
  display: block;
  width: 649px;
  height: 165px;
  object-fit: contain;
  object-position: left center;
}

/* ===== Section 7: Puffs ===== */
.ko-puffs-text {
  z-index: 2;
}

/* ===== Section 8: Flavors ===== */
.ko-flavors-header {
  position: absolute;
  left: 50%;
  top: 122px;
  transform: translateX(-50%);
  width: 1134px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.ko-flavors-title {
  font-size: 72px;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  line-height: 71px;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.ko-flavors-carousel {
  position: absolute;
  left: 50%;
  top: calc(50% + 41px);
  transform: translate(-50%, -50%);
  width: 1720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ko-flavors-nav {
  flex-shrink: 0;
  width: 44px;
  height: 80px;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ko-flavors-nav img {
  display: block;
  width: 21px;
  height: 37px;
  object-fit: contain;
}

.ko-flavors-nav:hover,
.ko-flavors-nav:focus-visible,
.ko-flavors-nav.is-selected {
  opacity: 1;
}

.ko-flavors-nav:active {
  transform: scale(0.92);
}

.ko-flavors-viewport {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  flex: 0 0 1600px;
  width: 1600px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.ko-flavors-viewport.is-dragging {
  cursor: grabbing;
}

.ko-flavors-viewport.is-dragging .ko-flavor-card {
  pointer-events: none;
}

.ko-flavors-track {
  display: flex;
  gap: 20px;
  align-items: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ko-flavor-card {
  width: 385px;
  height: 600px;
  border-radius: 30px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(0.94);
  opacity: 0.72;
}

.ko-flavor-card--active {
  transform: scale(1);
  opacity: 1;
}

.ko-flavor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ko-flavor-card--active img {
  transform: scale(1.06);
  transform-origin: center top;
}

.ko-flavors-footer {
  position: absolute;
  left: 50%;
  top: 1122.5px;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #000;
  text-align: center;
  line-height: 28px;
}

.ko-flavors-dots {
  position: absolute;
  left: 50%;
  top: 1004px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 1200px;
  justify-content: center;
  flex-wrap: nowrap;
}

.ko-dot {
  height: 2px;
  width: 36px;
  background: #b4b4b4;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
  flex-shrink: 0;
}

.ko-dot--active {
  width: 108px;
  background: #000;
}

/* ===== Section 9: Parameters ===== */
.ko-parameters-title {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  font-size: 72px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  text-align: center;
  line-height: normal;
}

.ko-parameters-box {
  position: absolute;
  left: 50%;
  top: 240px;
  transform: translateX(-50%);
  width: 1600px;
  height: 720px;
  border-radius: 35px;
  overflow: hidden;
}

.ko-parameters-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ko-parameters-tags {
  position: absolute;
  left: 50%;
  top: 1029px;
  transform: translateX(-50%);
  display: flex;
  gap: 53px;
  align-items: center;
}

.ko-tag {
  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;
  color: #000;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 9px 60px 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.ko-tag:hover {
  background: #000;
  color: #f3c691;
}

@media (prefers-reduced-motion: reduce) {
  .ko-flavor-card {
    transition: none;
    transform: scale(1);
    opacity: 1;
  }

  .ko-dot {
    transition: none;
  }
}
