/* ===================================================================
   Home — hero carousel + looping video background
   (extracted from the static index.html <style> block)
   =================================================================== */
:root{
  --bg:         #171715;                    /* fallback behind the fullscreen photo */
  --fg:         #f6f5f1;                    /* light text over photo */
  --fg-muted:   rgba(246,245,241,.62);
  --fg-faint:   rgba(246,245,241,.34);
  --hairline:   rgba(246,245,241,.28);
  --radius:     16px;
  --card-w:     clamp(120px, 16vw, 210px);  /* thumbnail strip */
  --ease:       cubic-bezier(.22, 1, .36, 1);
  --font-sans:  'Inter', -apple-system, 'SF Pro Display', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', 'Times New Roman', serif;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html, body{ overflow-x:hidden; }
body{
  background:var(--bg);
  color:var(--fg);
  font-family:var(--font-sans);
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}

/* ---- 首页首屏：hero 占满一屏，向下滚动进入视频背景 ---- */
.hero{ position:relative; height:100vh; min-height:620px; overflow:hidden; }

/* ---- fullscreen background (active image) ---- */
.bg-stack{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0; will-change:opacity;
}

/* readability scrim — soft dark toward bottom & left, keeps photo clear top-right */
.scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(to top,    rgba(10,10,10,.62), rgba(10,10,10,0) 36%),
    linear-gradient(to right,  rgba(10,10,10,.55), rgba(10,10,10,0) 54%);
}

.view{
  position:relative; z-index:2;
  height:100%;
  display:flex; flex-direction:column;
  padding:112px clamp(24px, 6vw, 88px) 36px;
}

/* ---- 下滑视频背景（循环自动播放） ---- */
.video-section{
  position:relative; height:100vh; min-height:620px;
  overflow:hidden; background:#0a0a0a;
}
.video-section video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover;
}
.video-scrim{
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to top, rgba(10,10,10,.55), rgba(10,10,10,0) 32%);
}
.video-caption{
  position:absolute; left:clamp(24px,6vw,88px); bottom:64px; z-index:2;
  color:var(--fg);
}
.video-caption h2{
  margin:0; font-family:var(--font-display); font-weight:700;
  font-size:clamp(26px,4.4vw,56px); line-height:1.05; letter-spacing:-.01em;
}
.video-caption p{
  margin:14px 0 0; font-family:var(--font-sans); font-size:12px; font-weight:500;
  letter-spacing:.3em; text-transform:uppercase; color:var(--fg-muted);
}
.scroll-hint{
  position:absolute; left:50%; bottom:22px; transform:translateX(-50%);
  z-index:3; display:flex; flex-direction:column; align-items:center; gap:10px;
  font-family:var(--font-sans); font-size:11px; letter-spacing:.3em;
  text-transform:uppercase; color:var(--fg-faint);
}
.scroll-hint::after{
  content:''; width:1px; height:34px; background:var(--fg-faint);
  animation:scrollPulse 1.9s ease-in-out infinite; transform-origin:top;
}
@keyframes scrollPulse{
  0%,100%{ transform:scaleY(.35); opacity:.35; }
  50%{ transform:scaleY(1); opacity:1; }
}

/* ---- 视频声音开关（胶囊按钮，带文字提示） ---- */
.sound-toggle{
  position:absolute; right:clamp(24px,6vw,48px); bottom:40px; z-index:3;
  display:inline-flex; align-items:center; gap:9px;
  height:44px; padding:0 18px;
  border-radius:999px;
  background:rgba(10,10,10,.42);
  border:1px solid rgba(246,245,241,.3);
  color:var(--fg); cursor:pointer;
  font-family:var(--font-sans); font-size:12px; font-weight:500;
  letter-spacing:.08em; text-transform:uppercase;
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  transition:background .3s ease, border-color .3s ease, color .3s ease;
}
.sound-toggle:hover{ background:rgba(246,245,241,.92); color:#171715; border-color:transparent; }
.sound-toggle:focus-visible{ outline:2px solid var(--fg); outline-offset:3px; }
.sound-toggle svg{ width:18px; height:18px; flex:none; }
.sound-toggle .ico-sound{ display:none; }
.sound-toggle.is-sound .ico-muted{ display:none; }
.sound-toggle.is-sound .ico-sound{ display:block; }

/* ---- 左侧标题 + See more ---- */
.intro{ align-self:flex-start; }
.headline{
  margin:0;
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(30px, 6.4vw, 92px);
  line-height:1.0; letter-spacing:-.02em;
  color:var(--fg);
  text-shadow:0 2px 44px rgba(0,0,0,.40);
}
.headline .line{ display:block; }
.headline em{ font-style:italic; font-weight:600; }

.see-more{
  position:relative;
  margin-top:clamp(24px, 4vh, 40px);
  display:inline-flex; align-items:center; gap:12px;
  padding:0 0 4px;
  background:none; border:none; cursor:pointer; text-decoration:none;
  font-family:var(--font-sans); font-size:12px; font-weight:500;
  letter-spacing:.3em; text-transform:uppercase; color:var(--fg);
}
.see-more .arrow{
  display:grid; place-items:center;
  width:26px; height:26px; flex:none;
  border-radius:50%;
  border:1px solid var(--fg-faint);
  color:var(--fg);
  transition:transform .45s var(--ease), border-color .3s ease;
}
.see-more::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background:var(--fg); transform:scaleX(.38); transform-origin:left;
  transition:transform .6s var(--ease);
}
.see-more:hover .arrow{ transform:translateX(6px); }
.see-more:hover::after{ transform:scaleX(1); }
.see-more:focus-visible{ outline:1px solid var(--hairline); outline-offset:6px; }

/* ---- 底部：缩略图轮播 + 左右箭头 ---- */
.carousel{ margin-top:auto; width:100%; display:flex; flex-direction:column; align-items:center; gap:clamp(22px, 4vh, 40px); }

.stage{
  position:relative;
  width:100%;
  height:calc(var(--card-w) * 9 / 16 * 1.15);
  cursor:grab; touch-action:none; user-select:none;
}
.stage.dragging{ cursor:grabbing; }
.stage:focus{ outline:none; }
.stage:focus-visible{ outline:1px solid var(--fg-faint); outline-offset:16px; border-radius:4px; }

.card{
  position:absolute; left:50%; top:50%;
  width:var(--card-w);
  aspect-ratio:16 / 9;
  border-radius:var(--radius);
  overflow:hidden;
  background:#2a2a28;
  pointer-events:none;
  will-change:transform, opacity;
  transform:translate(-50%,-50%) scale(1);
  box-shadow:0 0 0 0 transparent;
  transition:box-shadow .5s ease;
}
.card.active{ box-shadow:0 0 0 1.5px rgba(255,255,255,.55), 0 14px 34px -14px rgba(0,0,0,.65); }

.card img{
  display:block; width:100%; height:100%;
  object-fit:cover; object-position:center;
  -webkit-user-drag:none; user-select:none;
}

.controls{ display:flex; align-items:center; gap:clamp(18px, 3.4vw, 44px); }

.arrow{
  flex:none; width:48px; height:48px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(10,10,10,.28);
  border:1px solid var(--fg-faint);
  color:var(--fg); cursor:pointer;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  transition:background .3s ease, border-color .3s ease, color .3s ease, transform .2s ease;
}
.arrow:hover{ background:var(--fg); color:#171715; border-color:transparent; }
.arrow:active{ transform:scale(.94); }
.arrow:focus-visible{ outline:2px solid var(--fg); outline-offset:3px; }

.caption{
  display:flex; align-items:baseline; gap:14px;
  opacity:0; transform:translateY(10px);
  transition:opacity .55s ease, transform .55s var(--ease);
}
.caption.show{ opacity:1; transform:none; }

.cap-index{
  font-family:var(--font-serif); font-style:italic; font-weight:500;
  font-size:32px; line-height:1; color:var(--fg);
}
.cap-slash{ font-family:var(--font-serif); font-style:italic; font-weight:500; font-size:15px; color:var(--fg-muted); margin-left:-8px; }
.cap-rule{ width:1px; height:22px; background:var(--hairline); align-self:center; margin:0 6px; }
.cap-title{ font-family:var(--font-sans); font-size:16px; font-weight:500; letter-spacing:.02em; color:var(--fg); }

@media (max-width:720px){
  :root{ --card-w:clamp(96px, 27vw, 150px); }
  /* 手机端：首屏贴合可视高度，避免 iOS 动态地址栏跳屏（不支持 svh 时自动回退桌面端 100vh） */
  .hero, .video-section{ height:100svh; min-height:540px; }
  .view{ padding:78px 18px 24px; }
  .cap-index{ font-size:28px; }
  .cap-title{ font-size:15px; }
  .arrow{ width:42px; height:42px; }
  .scroll-hint{ display:none; } /* 手机屏幕矮，去掉「Scroll」提示，给轮播让位 */
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
}
