/* 七款次级页：每款一段横版开盖喷雾 AI 视频帧，同页过渡到全屏滚动舞台。雾在视频里。 */
.in-story{overflow:hidden}
.in-story main{pointer-events:none}
.in-story main header,
.in-story main footer,
.in-story .stage-name,
.in-story .stage-caption{
  opacity:0;
  transition:opacity .65s ease
}
/* 邻瓶退场的位移由 homepage.css 处理，这里只补 reduced-motion。 */

#story{
  position:fixed;
  inset:0;
  z-index:5;
  overflow-x:hidden;
  overflow-y:hidden;
  overscroll-behavior:contain;
  touch-action:pan-y;
  color:#f0ebe3;
  scrollbar-width:thin;
  background:transparent;
}
#story[hidden]{display:none}
#story.story-scrollable{overflow-y:auto}

.story-track{height:520vh;min-height:520vh}
.story-screen{
  position:sticky;
  top:0;
  width:100vw;
  height:100svh;
  overflow:hidden;
  isolation:isolate;
  background:transparent
}
@supports (height:100dvh){
  .story-screen{height:100dvh}
}

#story-canvas,
.story-hero{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:0;
  transition:opacity .7s ease
}
#story.story-visible #story-canvas{opacity:1}

.story-bar{
  position:absolute;
  left:0;
  top:0;
  height:3px;
  width:0;
  background:#f0ebe3;
  z-index:4;
  pointer-events:none
}

/* 桌面文案放在右侧下半；瓶子和正向雾在画面正中。 */
.story-copy{
  position:absolute;
  right:clamp(20px,5vw,80px);
  left:auto;
  top:auto;
  bottom:16%;
  max-width:min(22rem,30vw);
  text-align:right;
  text-shadow:0 1px 14px color-mix(in srgb, var(--atm-base, #000) 85%, transparent), 0 0 30px color-mix(in srgb, var(--atm-base, #000) 60%, transparent);
  pointer-events:none;
  z-index:2
}
.story-copy h2{
  font:normal clamp(28px,3.8vw,68px)/1.05 Georgia,serif;
  margin:0 0 .28em;
  letter-spacing:.04em
}
.story-copy .story-volume{
  font:15px/1.4 system-ui,sans-serif;
  margin:0 0 .8em;
  letter-spacing:.08em;
  opacity:.86
}
.story-copy .story-hint{
  font:16px/1.6 system-ui,sans-serif;
  margin:0;
  opacity:.88
}
.story-copy a,
.story-back{color:inherit}
.story-copy a{
  display:inline-block;
  margin-top:1.2em;
  pointer-events:auto;
  font:15px/1.4 system-ui,sans-serif
}
.story-copy a[hidden]{display:none !important}

.story-back{
  position:absolute;
  z-index:3;
  left:clamp(16px,4.2vw,64px);
  top:4%;
  width:auto;
  height:auto;
  border:1px solid var(--capsule-border);
  padding:8px 17px;
  border-radius:999px;
  background:var(--capsule-surface);
  box-shadow:var(--capsule-shadow);
  backdrop-filter:var(--capsule-blur);
  font:14px system-ui,sans-serif;
  cursor:pointer
}

.story-copy,
.story-back{opacity:0;transition:opacity .45s ease}
.story-ready .story-copy,
.story-ready .story-back{opacity:1}

.story-loading{
  position:absolute;
  inset:0;
  z-index:6;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:color-mix(in srgb, var(--atm-base, #0a0a0c) 85%, black);
  font:15px/1.4 system-ui,sans-serif;
  letter-spacing:.08em;
  color:#f0ebe3
}
.story-loading[hidden]{display:none}
.story-loading-spin{
  width:28px;
  height:28px;
  border:2px solid #ffffff33;
  border-top-color:#f0ebe3;
  border-radius:50%;
  animation:story-spin .8s linear infinite
}
.story-loading-bar{
  width:min(180px,50vw);
  height:3px;
  background:#ffffff22;
  border-radius:2px;
  overflow:hidden
}
.story-loading-bar>span{
  display:block;
  height:100%;
  width:0;
  background:#f0ebe3
}

@keyframes story-spin{to{transform:rotate(360deg)}}

/* 列表里的定位由 homepage.css 的 .product 负责 */
.product.is-flying .product-photo,.product.is-flying .product-lit{visibility:hidden}

.story-flyer{
  position:fixed;
  z-index:12;
  pointer-events:none;
  object-fit:contain;
  transform-origin:center center;
  will-change:left,top,width,height,transform;
  
  user-select:none
}
.story-flyer[hidden]{display:none}

@media (max-width:900px){
  .story-copy{
    left:5%;
    right:5%;
    top:3.4rem;
    bottom:auto;
    max-width:90%;
    text-align:left
  }
  .story-copy h2{font-size:clamp(22px,6.2vw,34px);margin-bottom:.15em}
  .story-copy .story-volume{margin-bottom:.35em}
  .story-copy .story-hint{font-size:14px}
  .story-copy a{margin-top:.6em}
  .story-back{top:1.4%;left:5%}
}
@media (max-width:650px){
  .story-copy h2{font-size:22px}
  .story-copy .story-volume,
  .story-copy .story-hint{font-size:13px}
  .story-back{top:1.2%;left:5%}
}

@media (prefers-reduced-motion:reduce){
  .in-story .rail .product:not(.is-story-item),
  .in-story main header,
  .in-story main footer,
  .in-story .stage-name,
  .story-copy,
  .story-back,
  #story-canvas{transition-duration:.01s}
  .story-loading-spin{animation:none;border-top-color:#ffffff33}
}

/* 2026-11-22 五款实拍: ASAD BOURBON has no open-cap story; show the still and an honest note. */
.story-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  background: #0b0b0d;
}
.story.is-still-story .story-hero { visibility: hidden; }
.story.is-still-story .story-hint { opacity: .85; }
.story.is-still-story .story-bar { width: 0 !important; }
.story.is-still-story { overflow: hidden; }
