:root{
  --bg-blur: 0px;
  --bg-scale: 1.04;
  --fg-text: #0d1017;
  --fg-soft: rgba(13,16,23,0.72);
  --fg-muted: rgba(13,16,23,0.56);
  --line-soft: rgba(255,255,255,0.4);
  --glass-bg: rgba(255,255,255,0.13);
  --glass-bg-strong: rgba(255,255,255,0.18);
  --chip-bg: rgba(255,255,255,0.2);
}


/* ==== 基础布局 ==== */
*,
*::before,
*::after{
  box-sizing:border-box;
}


body.sd-page{
  margin:0;
  padding:0;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;
  color:var(--fg-text);
  background:#050712;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  min-height:100vh;
  --bg-url: url("/static/images/sd/sd-hero.png");
}


/* 固定全屏背景 */
/* 两层背景，用来 cross-fade */
.sd-bg-layer{
  position:fixed;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  transform:scale(var(--bg-scale));
  filter:blur(var(--bg-blur));
  z-index:-4;
  opacity:0;
  transition:
    opacity 0.8s ease-out,
    transform 0.6s ease-out,
    filter 0.6s ease-out;
}


/* 当前显示的那层 */
.sd-bg-layer.is-active{
  opacity:1;
}



/* 暗角/渐变罩一层 */
body.sd-page::after{
  content:"";
  position:fixed;
  inset:0;
  background:
    /* 边角的白光再减一点，避免太晃眼 */
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.04), transparent 42%),
    radial-gradient(circle at 80% 100%, rgba(255,255,255,0.06), transparent 62%),
    /* 中间这块黑的大幅减弱：原来 0.35~0.6 -> 0.18~0.35 */
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
  mix-blend-mode:multiply;
  opacity:0.5;            /* 关键：整层再打 50% 透明 */
  pointer-events:none;
  z-index:-2;
}



/* 容器 */
.container{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:0 20px;
}


/* 顶栏 */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(16px) saturate(160%);
  background:linear-gradient(to bottom, rgba(6,8,18,0.9), rgba(6,8,18,0.65), transparent);
  border-bottom:1px solid rgba(255,255,255,0.16);
}


.topbar .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:56px;
}


.brand{
  display:flex;
  align-items:center;
  gap:10px;
}


.brand-logo{
  display:inline-flex;
  align-items:center;
}


.brand-icon{
  width:28px;
  height:auto;
}


.brand-sub{
  font-weight:600;
  color:#fff;
  text-decoration:none;
  font-size:15px;
}


.brand-sub:hover{
  text-decoration:underline;
}


.nav{
  display:flex;
  align-items:center;
  gap:20px;
  font-size:14px;
}


.nav a{
  color:rgba(255,255,255,0.86);
  text-decoration:none;
  position:relative;
  padding-bottom:3px;
}


.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  border-radius:999px;
  background:rgba(255,255,255,0.9);
  transition:width 0.2s ease-out;
}


.nav a:hover::after,
.nav a.is-active::after{
  width:100%;
}


/* ===== Scroll 场景区域 ===== */
.sd-main{
  scroll-snap-type:y mandatory;
  scroll-padding-top:60px;
}


.scene{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:80px 0;
  scroll-snap-align:center;
  color:#fff;
}


.scene-inner{
  display:flex;
  gap:40px;
  align-items:center;
  justify-content:space-between;
}


/* 右文左卡片 */
.scene-alt .scene-inner{
  flex-direction:row-reverse;
}


.hero-inner{
  justify-content:flex-start;
}


/* 文本 & 列表 */
.scene-text{
  flex:0 0 40%;
  max-width:460px;
}


.scene-list{
  flex:1;
}


/* Hero 文本 */
.hero-text{
  max-width:560px;
}


.hero-title{
  font-size:40px;
  line-height:1.08;
  letter-spacing:-0.03em;
  margin:8px 0 10px;
}


.hero-tag{
  font-size:15px;
  line-height:1.5;
  color:rgba(255,255,255,0.85);
  margin:0 0 18px;
}


/* 统一标题 */
.eyebrow{
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:11px;
  font-weight:600;
  color:rgba(255,255,255,0.7);
  margin:0 0 6px;
}


.scene-title{
  font-size:30px;
  line-height:1.15;
  letter-spacing:-0.02em;
  margin:0 0 12px;
}


.scene-lead{
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,0.82);
  margin:0 0 16px;
}


.scene-points{
  list-style:none;
  padding:0;
  margin:0;
  font-size:13px;
  color:rgba(255,255,255,0.84);
}


.scene-points li{
  position:relative;
  padding-left:16px;
  margin-bottom:6px;
}


.scene-points li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  color:rgba(255,255,255,0.7);
}


/* Chips */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
  padding:0;
  list-style:none;
}


.chips li{
  font-size:11px;
  padding:4px 9px;
  border-radius:999px;
  background:var(--chip-bg);
  border:1px solid rgba(255,255,255,0.45);
  backdrop-filter:blur(12px);
}


/* 按钮 */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.6);
  font-size:13px;
  text-decoration:none;
  cursor:pointer;
  backdrop-filter:blur(12px) saturate(150%);
  background:rgba(5,8,20,0.6);
  color:#fff;
  transition:
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    transform 0.12s ease-out,
    box-shadow 0.18s ease-out;
}


.btn.primary{
  background:linear-gradient(135deg, #ffd8ec, #ffe7b8);
  color:#111;
  border-color:rgba(255,255,255,0.9);
  box-shadow:0 14px 40px rgba(0,0,0,0.45);
}


.btn.ghost{
  background:rgba(5,8,18,0.35);
}


.btn.tiny{
  padding:5px 12px;
  font-size:12px;
}


.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 26px rgba(0,0,0,0.4);
}


.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}


/* ==== 毛玻璃横条托盘 ==== */
.tray{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#fff;
  padding:12px 16px;
  margin-bottom:12px;
  border-radius:18px;
  background:var(--glass-bg);
  border:1px solid var(--line-soft);
  backdrop-filter:blur(18px) saturate(170%);
  box-shadow:0 22px 48px rgba(0,0,0,0.55);
  overflow:hidden;
  transform:translateY(18px);
  opacity:0;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.25s ease-out,
    background 0.25s ease-out,
    border-color 0.25s ease-out;
}


.tray:last-child{
  margin-bottom:0;
}


.tray-thumb{
  flex:0 0 128px;
  border-radius:14px;
  overflow:hidden;
  aspect-ratio:16/9;
  background:rgba(0,0,0,0.45);
}


.tray-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  transition:transform 0.4s ease-out;
}


.tray-body{
  min-width:0;
}


.tray-body h3{
  font-size:15px;
  margin:0 0 4px;
}


.tray-body p{
  font-size:13px;
  line-height:1.5;
  margin:0;
  color:rgba(255,255,255,0.85);
}


/* hover */
.tray:hover{
  background:var(--glass-bg-strong);
  border-color:rgba(255,255,255,0.9);
  box-shadow:0 26px 70px rgba(0,0,0,0.7);
  transform:translateY(4px);
}


.tray:hover .tray-thumb img{
  transform:scale(1.08);
}


/* ==== 场景激活动画 ==== */
.scene{
  opacity:0.35;
  transform:translateY(18px);
  transition:opacity 0.45s ease-out, transform 0.45s ease-out;
}


.scene.scene-hero{
  opacity:1;
  transform:none;
}


.scene.is-active{
  opacity:1;
  transform:translateY(0);
}


.scene.is-active .tray{
  opacity:1;
  transform:translateY(0);
}


.reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity 0.7s ease-out, transform 0.7s ease-out;
}


.scene.is-active .reveal{
  opacity:1;
  transform:translateY(0);
}


.back-top{
  margin-top:10px;
}


/* ==== 响应式 ==== */
@media (max-width:900px){
  .nav{
    display:none;
  }


  .scene,
  .scene-alt .scene-inner,
  .scene-inner{
    min-height:calc(100vh - 56px);
  }


  .scene-inner{
    flex-direction:column;
    align-items:stretch;
    gap:24px;
  }


  .scene-text,
  .scene-list{
    flex:1 1 auto;
    max-width:none;
  }


  .hero-inner{
    justify-content:center;
  }


  .hero-title{
    font-size:30px;
  }
}


@media (max-width:640px){
  .topbar .row{
    min-height:52px;
  }


  .scene{
    padding:64px 0 72px;
  }


  .chips{
    max-width:340px;
  }


  .tray{
    align-items:flex-start;
  }


  .tray-thumb{
    flex:0 0 96px;
  }


  .tray-body h3{
    font-size:14px;
  }


  .tray-body p{
    font-size:12px;
  }
}


/* 简单滚动条样式 */
@media (min-width:900px){
  ::-webkit-scrollbar{
    width:8px;
  }
  ::-webkit-scrollbar-track{
    background:transparent;
  }
  ::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,0.28);
    border-radius:999px;
  }
}

.scene-text{
  position:relative;
}
.scene-text::before{
  content:"";
  position:absolute;
  inset:-14px -18px;
  border-radius:24px;
  background:radial-gradient(ellipse at top,
              rgba(5,7,15,0.78),
              rgba(5,7,15,0.45));
  backdrop-filter:blur(26px);
  border:1px solid rgba(255,255,255,0.18);
  z-index:-1;
}

/* ==== HERO 单独布局：全居中，无文字托盘 ==== */


.scene-hero{
  text-align:center;
}


/* hero 里面只需要一列，强制居中对齐 */
.scene-hero .scene-inner{
  justify-content:center;
}


.scene-hero .scene-text{
  flex:0 1 100%;
  max-width:640px;
  margin:0 auto;
}


/* hero 的 chips / 按钮也整体居中排列 */
.scene-hero .chips{
  justify-content:center;
}


.scene-hero .cta{
  justify-content:center;
}


/* 如果你之前给 .scene-text 做了毛玻璃托盘，这里给 hero 关掉 */
.scene-hero .scene-text::before{
  display:none;
}

@media (max-width:900px){
  .nav{
    display:none;
  }


  .scene,
  .scene-alt .scene-inner,
  .scene-inner{
    min-height:calc(100vh - 56px);
  }


  .scene-inner{
    flex-direction:column;
    align-items:stretch;
    gap:24px;
  }


  /* 🔧 修 bug：小屏下强制 alt 场景也改成纵向排版 */
  .scene-alt .scene-inner{
    flex-direction:column;
  }


  .scene-text,
  .scene-list{
    flex:1 1 auto;
    max-width:none;
  }


  .hero-inner{
    justify-content:center;
  }


  .hero-title{
    font-size:30px;
  }
}

@media (max-width:900px){
  .sd-main{
    scroll-snap-type:y proximity;
  }
}


